Add ENABLE_STRICT_DEPENDENCIES for faster parallel builds (#5473)
This commit is contained in:
@@ -6,6 +6,8 @@ ie_dependent_option (ENABLE_MKL_DNN "MKL-DNN plugin for inference engine" ON "X8
|
||||
|
||||
ie_option (ENABLE_TESTS "unit, behavior and functional tests" OFF)
|
||||
|
||||
ie_option (ENABLE_STRICT_DEPENDENCIES "Skip configuring \"convinient\" dependencies for efficient parallel builds" OFF)
|
||||
|
||||
ie_dependent_option (ENABLE_CLDNN "clDnn based plugin for inference engine" ON "X86_64;NOT APPLE;NOT MINGW;NOT WINDOWS_STORE;NOT WINDOWS_PHONE" OFF)
|
||||
|
||||
ie_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable." OFF)
|
||||
|
||||
@@ -286,13 +286,21 @@ set_source_files_properties(includes.cpp PROPERTIES COMPILE_DEFINITIONS
|
||||
if (ENABLE_MKL_DNN)
|
||||
message(STATUS "NGRAPH_TESTS: IE:CPU enabled")
|
||||
set(ACTIVE_BACKEND_LIST ${ACTIVE_BACKEND_LIST} "IE:CPU")
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES MKLDNNPlugin)
|
||||
if (NOT ENABLE_STRICT_DEPENDENCIES)
|
||||
# For convinience add a runtime dependency to build along with this target.
|
||||
# Warning: Parallel build with -GNinja may not be efficient.
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES MKLDNNPlugin)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (ENABLE_CLDNN)
|
||||
message(STATUS "NGRAPH_TESTS: IE:GPU enabled")
|
||||
set(ACTIVE_BACKEND_LIST ${ACTIVE_BACKEND_LIST} "IE:GPU")
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES clDNNPlugin)
|
||||
if (NOT ENABLE_STRICT_DEPENDENCIES)
|
||||
# For convinience add a runtime dependency to build along with this target.
|
||||
# Warning: Parallel build with -GNinja may not be efficient.
|
||||
list(APPEND UNIT_TESTS_DEPENDENCIES clDNNPlugin)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NGRAPH_INTERPRETER_ENABLE)
|
||||
|
||||
Reference in New Issue
Block a user