Skip to content

Commit 9b83a7e

Browse files
committedMay 13, 2024
propagate _GLIBCXX_USE_CXX11_ABI
1 parent 74fc107 commit 9b83a7e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.github/workflows/genai_lib.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
with:
1212
python-version: 3.8
1313
- run: mkdir ./ov/
14-
- run: curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14758-22bd6ff0494/l_openvino_toolkit_centos7_2024.1.0.dev20240315_x86_64.tgz | tar --directory ./ov/ --strip-components 1 -xz # Install centos instead of ubuntu to match PyPI distribution ABI
14+
- run: curl https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.1.0-14758-22bd6ff0494/l_openvino_toolkit_centos7_2024.1.0.dev20240315_x86_64.tgz | tar --directory ./ov/ --strip-components 1 -xz # Install CentOS7 instead of Ubuntu to match PyPI distribution ABI
1515
- run: sudo ./ov/install_dependencies/install_openvino_dependencies.sh
1616
- run: source ./ov/setupvars.sh && python -m pip install --pre . --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
1717
- run: python -c "from openvino.genai.py_generate_pipeline import LLMPipeline"

‎src/cpp/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ function(ov_genai_build_jinja2cpp)
3030
set(JINJA2CPP_PIC ON CACHE BOOL "")
3131

3232
add_subdirectory("${jinja2cpp_SOURCE_DIR}" "${jinja2cpp_BINARY_DIR}" EXCLUDE_FROM_ALL)
33+
# openvino::runtime exports _GLIBCXX_USE_CXX11_ABI=0 on CenOS7.
34+
# It needs to be propagated to every lib GenAI links with. It's
35+
# enough to propagate it to fmt, because fmt propagates to
36+
# jinja2cpp.
37+
target_link_libraries(fmt PUBLIC openvino::runtime)
3338
endif()
3439
endfunction()
3540

0 commit comments

Comments
 (0)