Skip to content

Commit 3507deb

Browse files
committed
single thread
1 parent 2c691c3 commit 3507deb

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/genai_package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: sudo ./ov/install_dependencies/install_openvino_dependencies.sh
1919
- run: sudo apt-get install libtbb-dev
2020
- run: source ./ov/setupvars.sh && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ -B ./build/
21-
- run: source ./ov/setupvars.sh && cmake --build ./build/ --config ${{ matrix.build-type }} --target package -j
21+
- run: source ./ov/setupvars.sh && cmake --build ./build/ --config ${{ matrix.build-type }} --target package
2222
- run: source ./ov/setupvars.sh && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix ov
2323
- run: ov/samples/cpp/build_samples.sh -i ${{ github.workspace }}/s\ pace
2424
if: ${{ 'Release' == matrix.build-type }} # build_samples enforces Release build
@@ -49,7 +49,7 @@ jobs:
4949
- run: curl --output ov.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2024.2.0-15349-765302e0de1/w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64.zip
5050
- run: unzip ov.zip
5151
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -S ./ -B ./build/
52-
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --build ./build/ --config ${{ matrix.build-type }} --target package -j
52+
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --build ./build/ --config ${{ matrix.build-type }} --target package
5353
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && cmake --install ./build/ --config ${{ matrix.build-type }} --prefix w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64
5454
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\samples\cpp\build_samples_msvc.bat -i "${{ github.workspace }}/samples_install"
5555
if: ${{ 'Release' == matrix.build-type }} # build_samples enforces Release build

.github/workflows/genai_python_lib.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ jobs:
5454
# build system doesn't. Install ./requirements-build.txt to detect possible conflicts.
5555
- run: call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install ./thirdparty/openvino_tokenizers/[transformers] -r ./requirements-build.txt
5656
- run: set "PYTHONPATH=./src/python;" && call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -c "from openvino_genai import LLMPipeline" # cmd evaluates variables in a different way. Setting PYTHONPATH before setupvars.bat instead of doing that after solves that.
57-
- run: set CMAKE_BUILD_PARALLEL_LEVEL="" && call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install .
57+
- run: set CMAKE_BUILD_PARALLEL_LEVEL=&& call w_openvino_toolkit_windows_2024.2.0.dev20240515_x86_64\setupvars.bat && python -m pip install .
5858
- run: python -c "from openvino_genai import LLMPipeline"

src/cpp/CMakeLists.txt

+5-7
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,11 @@ install(TARGETS ${TARGET_NAME}
7575
RUNTIME DESTINATION python/openvino_genai/ COMPONENT pygenai_${Python_VERSION_MAJOR}_${Python_VERSION_MINOR})
7676

7777
# Copy libcore_tokenizers.so to build_dir/openvino_tokenizers/src/
78-
if(NOT MSVC)
79-
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
80-
COMMAND "${CMAKE_COMMAND}" -E copy
81-
"${CMAKE_BINARY_DIR}/_deps/fast_tokenizer-src/lib/libcore_tokenizers.so"
82-
"${CMAKE_BINARY_DIR}/openvino_tokenizers/src/"
83-
COMMENT "Copy libcore_tokenizers.so to build_dir/openvino_tokenizers/src/")
84-
endif()
78+
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
79+
COMMAND "${CMAKE_COMMAND}" -E copy
80+
"$<TARGET_FILE:core_tokenizers>"
81+
"${CMAKE_BINARY_DIR}/openvino_tokenizers/src/"
82+
COMMENT "Copy libcore_tokenizers.so to build_dir/openvino_tokenizers/src/")
8583

8684
# - Windows: `<openvino_dir>\runtime\bin\intel64\Release\`
8785
# - MacOS_x86: `<openvino_dir>/runtime/lib/intel64/Release`

0 commit comments

Comments
 (0)