Skip to content

Commit 403bab0

Browse files
committed
build py_continuous_batching
1 parent f46bb77 commit 403bab0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/python/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,10 @@ install(FILES "${OpenVINOGenAI_SOURCE_DIR}/LICENSE"
8686
install(TARGETS openvino_genai py_generate_pipeline
8787
LIBRARY DESTINATION openvino_genai COMPONENT wheel_genai EXCLUDE_FROM_ALL
8888
RUNTIME DESTINATION openvino_genai COMPONENT wheel_genai EXCLUDE_FROM_ALL)
89+
90+
if(ENABLE_CONTINUOUS_BATCHING)
91+
pybind11_add_module(py_continuous_batching python.cpp)
92+
target_link_libraries(py_continuous_batching PRIVATE openvino::continuous_batching)
93+
set_target_properties(py_continuous_batching PROPERTIES
94+
LIBRARY_OUTPUT_DIRECTORY "$<1:${CMAKE_BINARY_DIR}/openvino_genai>")
95+
endif()

0 commit comments

Comments
 (0)