ENABLE_BATCH

This commit is contained in:
myshevts
2021-11-22 16:12:41 +03:00
parent 84e858d636
commit e334783026
8 changed files with 29 additions and 2 deletions

View File

@@ -110,6 +110,8 @@ ie_option (ENABLE_GAPI_PREPROCESSING "Enables G-API preprocessing" ON)
ie_option (ENABLE_MULTI "Enables Multi Device Plugin" ON)
ie_option (ENABLE_BATCH "Enables Auto-Batching Plugin" ON)
ie_option (ENABLE_HETERO "Enables Hetero Device Plugin" ON)
ie_option (ENABLE_TEMPLATE "Enable template plugin" ON)

View File

@@ -26,6 +26,10 @@ if(ENABLE_MULTI)
add_dependencies(${TARGET_NAME} MultiDevicePlugin)
endif()
if(ENABLE_BATCH)
add_dependencies(${TARGET_NAME} AutoBatchPlugin)
endif()
if(ENABLE_MKL_DNN)
add_dependencies(${TARGET_NAME} MKLDNNPlugin)
endif()

View File

@@ -38,7 +38,10 @@ endif()
if(ENABLE_MULTI)
add_subdirectory(multi_device)
endif()
add_subdirectory(auto_batch)
if(ENABLE_BATCH)
add_subdirectory(auto_batch)
endif()
add_subdirectory(inference_engine)

View File

@@ -48,6 +48,10 @@ if(ENABLE_MULTI)
list(APPEND DEPENDENCIES MultiDevicePlugin)
endif()
if(ENABLE_BATCH)
list(APPEND DEPENDENCIES AutoBatchPlugin)
endif()
if (NOT NGRAPH_ONNX_FRONTEND_ENABLE)
list(APPEND EXCLUDED_SOURCE_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/onnx_reader")
endif()

View File

@@ -12,7 +12,7 @@ addIeTargetTest(
INCLUDES
${CMAKE_CURRENT_SOURCE_DIR}
DEPENDENCIES
clDNNPlugin AutoBatchPlugin
clDNNPlugin
LINK_LIBRARIES
funcSharedTests
OpenCL

View File

@@ -16,6 +16,11 @@ if(ENABLE_MULTI)
list(APPEND DEPENDENCIES MultiDevicePlugin)
endif()
if(ENABLE_BATCH)
list(APPEND DEPENDENCIES AutoBatchPlugin)
endif()
# remove once CVS-69781 is fixed
if(NGRAPH_IR_FRONTEND_ENABLE)
list(APPEND DEPENDENCIES ir_ov_frontend)

View File

@@ -14,6 +14,11 @@ if(ENABLE_MULTI)
add_dependencies(${TARGET_NAME} MultiDevicePlugin)
endif()
if(ENABLE_BATCH)
add_dependencies(${TARGET_NAME} AutoBatchPlugin)
endif()
target_include_directories(${TARGET_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/plugin_tests")
target_link_libraries(${TARGET_NAME} PUBLIC

View File

@@ -25,6 +25,10 @@ if(ENABLE_MULTI)
add_dependencies(${TARGET_NAME} MultiDevicePlugin)
endif()
if(ENABLE_BATCH)
add_dependencies(${TARGET_NAME} AutoBatchPlugin)
endif()
set_ie_threading_interface_for(${TARGET_NAME})
ie_faster_build(${TARGET_NAME}