2021-03-08 21:31:15 -06:00
|
|
|
# Copyright (C) 2018-2021 Intel Corporation
|
2020-02-11 13:48:49 -06:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2021-06-24 05:14:04 -05:00
|
|
|
#
|
|
|
|
# Common cmake options
|
|
|
|
#
|
|
|
|
|
2021-03-08 21:31:15 -06:00
|
|
|
ie_dependent_option (ENABLE_MKL_DNN "MKL-DNN plugin for inference engine" ON "X86_64" OFF)
|
2020-02-11 13:48:49 -06:00
|
|
|
|
2020-12-22 09:44:59 -06:00
|
|
|
ie_option (ENABLE_TESTS "unit, behavior and functional tests" OFF)
|
2020-04-13 13:17:23 -05:00
|
|
|
|
2021-06-09 10:52:44 -05:00
|
|
|
ie_option (ENABLE_STRICT_DEPENDENCIES "Skip configuring \"convinient\" dependencies for efficient parallel builds" ON)
|
2021-06-09 00:21:03 -05:00
|
|
|
|
2020-12-22 09:44:59 -06:00
|
|
|
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)
|
2020-08-03 04:53:00 -05:00
|
|
|
|
2020-10-14 05:08:06 -05:00
|
|
|
ie_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable." OFF)
|
2020-09-23 03:15:02 -05:00
|
|
|
|
2021-04-28 23:33:21 -05:00
|
|
|
ie_option_enum(ENABLE_PROFILING_FILTER "Enable or disable ITT counter groups.\
|
|
|
|
Supported values:\
|
|
|
|
ALL - enable all ITT counters (default value)\
|
|
|
|
FIRST_INFERENCE - enable only first inference time counters" ALL
|
|
|
|
ALLOWED_VALUES ALL FIRST_INFERENCE)
|
|
|
|
|
|
|
|
ie_option (ENABLE_PROFILING_FIRST_INFERENCE "Build with ITT tracing of first inference time." ON)
|
|
|
|
|
2020-11-24 21:43:35 -06:00
|
|
|
ie_option_enum(SELECTIVE_BUILD "Enable OpenVINO conditional compilation or statistics collection. \
|
|
|
|
In case SELECTIVE_BUILD is enabled, the SELECTIVE_BUILD_STAT variable should contain the path to the collected InelSEAPI statistics. \
|
|
|
|
Usage: -DSELECTIVE_BUILD=ON -DSELECTIVE_BUILD_STAT=/path/*.csv" OFF
|
|
|
|
ALLOWED_VALUES ON OFF COLLECT)
|
2020-11-30 21:33:36 -06:00
|
|
|
|
2020-12-22 23:01:07 -06:00
|
|
|
ie_option(ENABLE_ERROR_HIGHLIGHT "Highlight errors and warnings during compile time" OFF)
|
|
|
|
|
2021-06-07 02:52:48 -05:00
|
|
|
# Try to find python3
|
|
|
|
find_package(PythonLibs 3 QUIET)
|
|
|
|
ie_dependent_option (ENABLE_PYTHON "enables ie python bridge build" OFF "PYTHONLIBS_FOUND" OFF)
|
2021-03-22 05:28:40 -05:00
|
|
|
|
2021-06-08 03:00:02 -05:00
|
|
|
find_package(PythonInterp 3 QUIET)
|
|
|
|
ie_dependent_option (ENABLE_DOCS "Build docs using Doxygen" OFF "PYTHONINTERP_FOUND" OFF)
|
|
|
|
|
2021-03-22 05:28:40 -05:00
|
|
|
#
|
2021-06-24 05:14:04 -05:00
|
|
|
# Inference Engine specific options
|
2021-03-22 05:28:40 -05:00
|
|
|
#
|
2021-06-07 02:52:48 -05:00
|
|
|
|
2021-06-24 05:14:04 -05:00
|
|
|
ie_dependent_option (ENABLE_GNA "GNA support for inference engine" ON "NOT APPLE;NOT ANDROID;X86_64" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_CLDNN_TESTS "Enable clDNN unit tests" OFF "ENABLE_CLDNN" OFF)
|
|
|
|
|
|
|
|
# "MKL-DNN library based on OMP or TBB or Sequential implementation: TBB|OMP|SEQ"
|
|
|
|
if(X86 OR ARM OR (MSVC AND (ARM OR AARCH64)) )
|
|
|
|
set(THREADING_DEFAULT "SEQ")
|
|
|
|
else()
|
|
|
|
set(THREADING_DEFAULT "TBB")
|
|
|
|
endif()
|
|
|
|
set(THREADING "${THREADING_DEFAULT}" CACHE STRING "Threading")
|
|
|
|
set_property(CACHE THREADING PROPERTY STRINGS "TBB" "TBB_AUTO" "OMP" "SEQ")
|
|
|
|
list (APPEND IE_OPTIONS THREADING)
|
|
|
|
if (NOT THREADING STREQUAL "TBB" AND
|
|
|
|
NOT THREADING STREQUAL "TBB_AUTO" AND
|
|
|
|
NOT THREADING STREQUAL "OMP" AND
|
|
|
|
NOT THREADING STREQUAL "SEQ")
|
|
|
|
message(FATAL_ERROR "THREADING should be set to TBB, TBB_AUTO, OMP or SEQ. Default option is ${THREADING_DEFAULT}")
|
2021-03-22 05:28:40 -05:00
|
|
|
endif()
|
|
|
|
|
2021-06-24 05:14:04 -05:00
|
|
|
if (ENABLE_GNA)
|
2021-10-04 20:26:01 -05:00
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.4)
|
2021-06-24 05:14:04 -05:00
|
|
|
set (DEFAULT_GNA_LIB GNA1)
|
|
|
|
else()
|
|
|
|
set (DEFAULT_GNA_LIB GNA2)
|
|
|
|
endif()
|
|
|
|
set(GNA_LIBRARY_VERSION "${DEFAULT_GNA_LIB}" CACHE STRING "GNAVersion")
|
|
|
|
set_property(CACHE GNA_LIBRARY_VERSION PROPERTY STRINGS "GNA1" "GNA1_1401" "GNA2")
|
|
|
|
list (APPEND IE_OPTIONS GNA_LIBRARY_VERSION)
|
|
|
|
if (NOT GNA_LIBRARY_VERSION STREQUAL "GNA1" AND
|
|
|
|
NOT GNA_LIBRARY_VERSION STREQUAL "GNA1_1401" AND
|
|
|
|
NOT GNA_LIBRARY_VERSION STREQUAL "GNA2")
|
|
|
|
message(FATAL_ERROR "GNA_LIBRARY_VERSION should be set to GNA1, GNA1_1401 or GNA2. Default option is ${DEFAULT_GNA_LIB}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-10-28 03:33:56 -05:00
|
|
|
if(ENABLE_TESTS OR BUILD_SHARED_LIBS)
|
|
|
|
set(ENABLE_IR_V7_READER_DEFAULT ON)
|
|
|
|
else()
|
|
|
|
set(ENABLE_IR_V7_READER_DEFAULT OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ie_option (ENABLE_IR_V7_READER "Enables IR v7 reader" ${ENABLE_IR_V7_READER_DEFAULT})
|
|
|
|
|
|
|
|
ie_option (ENABLE_MULTI "Enables Multi Device Plugin" ON)
|
|
|
|
|
|
|
|
ie_option (ENABLE_HETERO "Enables Hetero Device Plugin" ON)
|
|
|
|
|
2021-06-24 05:14:04 -05:00
|
|
|
ie_dependent_option (ENABLE_VPU "vpu targeted plugins for inference engine" ON "NOT WINDOWS_PHONE;NOT WINDOWS_STORE" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_MYRIAD "myriad targeted plugin for inference engine" ON "ENABLE_VPU" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_MYRIAD_NO_BOOT "myriad plugin will skip device boot" OFF "ENABLE_MYRIAD" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_GAPI_TESTS "tests for GAPI kernels" ON "ENABLE_TESTS" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (GAPI_TEST_PERF "if GAPI unit tests should examine performance" OFF "ENABLE_GAPI_TESTS" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_MYRIAD_MVNC_TESTS "functional and behavior tests for mvnc api" OFF "ENABLE_TESTS;ENABLE_MYRIAD" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_DATA "fetch models from testdata repo" ON "ENABLE_FUNCTIONAL_TESTS;NOT ANDROID" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_BEH_TESTS "tests oriented to check inference engine API corecteness" ON "ENABLE_TESTS" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_FUNCTIONAL_TESTS "functional tests" ON "ENABLE_TESTS" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_SAMPLES "console samples are part of inference engine package" ON "NOT MINGW" OFF)
|
|
|
|
|
|
|
|
ie_option (ENABLE_OPENCV "enables OpenCV" ON)
|
|
|
|
|
|
|
|
ie_option (ENABLE_V7_SERIALIZE "enables serialization to IR v7" OFF)
|
|
|
|
|
|
|
|
set(IE_EXTRA_MODULES "" CACHE STRING "Extra paths for extra modules to include into OpenVINO build")
|
|
|
|
|
|
|
|
ie_dependent_option(ENABLE_TBB_RELEASE_ONLY "Only Release TBB libraries are linked to the Inference Engine binaries" ON "THREADING MATCHES TBB;LINUX" OFF)
|
|
|
|
|
2021-07-02 03:36:31 -05:00
|
|
|
ie_option (ENABLE_SYSTEM_PUGIXML "use the system copy of pugixml" OFF)
|
2021-06-24 05:14:04 -05:00
|
|
|
|
2021-07-22 05:29:09 -05:00
|
|
|
ie_option (ENABLE_DEBUG_CAPS "enable OpenVINO debug capabilities at runtime" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_GPU_DEBUG_CAPS "enable GPU debug capabilities at runtime" ON "ENABLE_DEBUG_CAPS" OFF)
|
|
|
|
|
|
|
|
ie_dependent_option (ENABLE_CPU_DEBUG_CAPS "enable CPU debug capabilities at runtime" ON "ENABLE_DEBUG_CAPS" OFF)
|
2021-06-24 05:14:04 -05:00
|
|
|
|
2021-07-16 10:55:05 -05:00
|
|
|
if(ANDROID OR WINDOWS_STORE OR (MSVC AND (ARM OR AARCH64)))
|
|
|
|
set(protoc_available OFF)
|
|
|
|
else()
|
|
|
|
set(protoc_available ON)
|
|
|
|
endif()
|
|
|
|
|
2021-08-11 11:01:27 -05:00
|
|
|
ie_dependent_option(NGRAPH_ONNX_FRONTEND_ENABLE "Enable ONNX FrontEnd" ON "protoc_available" OFF)
|
2021-07-16 10:55:05 -05:00
|
|
|
ie_dependent_option(NGRAPH_PDPD_FRONTEND_ENABLE "Enable PaddlePaddle FrontEnd" ON "protoc_available" OFF)
|
2021-09-20 15:17:22 -05:00
|
|
|
ie_option(NGRAPH_IR_FRONTEND_ENABLE "Enable IR FrontEnd" ON)
|
Merge TensorFlow Frontend Implementation (#7855)
* Migrate POC for TensorFlow frontend
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Refactor InputModelTensorFlow API
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Repack POC to official API
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove tensorflow API from public include
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make TF frontend work from MO and clean-up code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply codestyle
* Fix win biuld
* Fix Linux build
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Implement Place class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Determine outputs from graph
* Implement all Place classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make small clean-up
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style corrections
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Determine cut nodes
* Apply codestyle
* Rework to use places
* Fix conversion issue
* Fix build
* Fix conversion
* Small fixes
* Add test for tf frontend
* Add tests
* Implement partial conversion
* Use dynamic type in TFFrameworkNode
* Fix build on Linux
* Implement InputModelTF class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix code by replacing InputModelTensorFlow to InputModelTF
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix to pass getPlaceByTensorName test
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Refactor and clean the code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Finalize refactoring code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Support freezing inputs
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add support for pruning input ports as new model output
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style fixes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* move op convertors to separate files, refactoring
* openvino codestyle
* openvino codestyle
* fix crash of layer tests
* fix missprint
* Implement TensorFlow NodeContext and DecoderTFProto classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Switch to new NodeContext
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove ngraph_builder class and node_context_impl class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Move decoder/graph_iterator to separate files and remove old files
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Document Decoder, GraphIterator, and NodeContext classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove empty file graph_iterator_proto.cpp and redundant comments
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Use base class for GraphIterator in model class and correct exception class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Use ends_with from util library
* Remain only InputModelTF constructor with GraphIterator and adopt other code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct code after merge
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix code based on feedback: delete extra namespace usage, etc.
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make legacy TF frontend default in MO and avoid reading tf models from ReadNetwork
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue with FrameworkNode after upstream merge
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct frontend name in test and clean the code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* refactoring of tf FrontEnd: rename namespaces, delete default opset
* codestyle
* fix e2e tests
* change namespaces of external classes
* resolve review comment
* codestyle
* Clean useless comments and fix tests
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add copyright for proto files
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make op translators a part of FrontEndTF
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Align CMakeLists.txt file with other frontends
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add job_pool into CMakeLists.txt for tensorflow tests
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove cout and WA in ie_network_reader.cpp
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct DecoderBase and FrontEndTF methods, clean the code from if 0, utility.hpp, ngraph_conversions.hpp
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Clean operation translator code and remove empty implementation
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Extend cmake template files with tensorflow frontend
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issues on MacOS and apply review feedback
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove ConstantFolding pass, add destructors for DecoderBase, GraphIterator, and fix Win build
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix Windows build issue
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style fix
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix issues with code style: remove virtual keyword, OpMap removal
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Resolve review remarks
* Resolve review remarks
* codestyle
* resolve review remarks
* fix copyright
* resolve review comments
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2021-10-14 02:36:10 -05:00
|
|
|
ie_dependent_option(NGRAPH_TF_FRONTEND_ENABLE "Enable TensorFlow FrontEnd" ON "protoc_available" OFF)
|
2021-07-22 11:13:43 -05:00
|
|
|
ie_dependent_option(NGRAPH_USE_SYSTEM_PROTOBUF "Use system protobuf" OFF
|
Merge TensorFlow Frontend Implementation (#7855)
* Migrate POC for TensorFlow frontend
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Refactor InputModelTensorFlow API
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Repack POC to official API
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove tensorflow API from public include
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make TF frontend work from MO and clean-up code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply codestyle
* Fix win biuld
* Fix Linux build
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Implement Place class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Determine outputs from graph
* Implement all Place classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make small clean-up
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style corrections
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Determine cut nodes
* Apply codestyle
* Rework to use places
* Fix conversion issue
* Fix build
* Fix conversion
* Small fixes
* Add test for tf frontend
* Add tests
* Implement partial conversion
* Use dynamic type in TFFrameworkNode
* Fix build on Linux
* Implement InputModelTF class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix code by replacing InputModelTensorFlow to InputModelTF
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix to pass getPlaceByTensorName test
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Refactor and clean the code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Finalize refactoring code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Support freezing inputs
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add support for pruning input ports as new model output
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style fixes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* move op convertors to separate files, refactoring
* openvino codestyle
* openvino codestyle
* fix crash of layer tests
* fix missprint
* Implement TensorFlow NodeContext and DecoderTFProto classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Switch to new NodeContext
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove ngraph_builder class and node_context_impl class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Move decoder/graph_iterator to separate files and remove old files
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Document Decoder, GraphIterator, and NodeContext classes
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove empty file graph_iterator_proto.cpp and redundant comments
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Use base class for GraphIterator in model class and correct exception class
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Use ends_with from util library
* Remain only InputModelTF constructor with GraphIterator and adopt other code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct code after merge
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix code based on feedback: delete extra namespace usage, etc.
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make legacy TF frontend default in MO and avoid reading tf models from ReadNetwork
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue with FrameworkNode after upstream merge
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct frontend name in test and clean the code
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* refactoring of tf FrontEnd: rename namespaces, delete default opset
* codestyle
* fix e2e tests
* change namespaces of external classes
* resolve review comment
* codestyle
* Clean useless comments and fix tests
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add copyright for proto files
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Make op translators a part of FrontEndTF
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Align CMakeLists.txt file with other frontends
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add job_pool into CMakeLists.txt for tensorflow tests
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove cout and WA in ie_network_reader.cpp
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Correct DecoderBase and FrontEndTF methods, clean the code from if 0, utility.hpp, ngraph_conversions.hpp
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Clean operation translator code and remove empty implementation
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Extend cmake template files with tensorflow frontend
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issues on MacOS and apply review feedback
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove ConstantFolding pass, add destructors for DecoderBase, GraphIterator, and fix Win build
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix Windows build issue
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code-style fix
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix issues with code style: remove virtual keyword, OpMap removal
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Resolve review remarks
* Resolve review remarks
* codestyle
* resolve review remarks
* fix copyright
* resolve review comments
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2021-10-14 02:36:10 -05:00
|
|
|
"NGRAPH_ONNX_FRONTEND_ENABLE OR NGRAPH_PDPD_FRONTEND_ENABLE OR NGRAPH_TF_FRONTEND_ENABLE" OFF)
|
2021-07-16 10:55:05 -05:00
|
|
|
ie_dependent_option(NGRAPH_UNIT_TEST_ENABLE "Enables ngraph unit tests" ON "ENABLE_TESTS;NOT ANDROID" OFF)
|
|
|
|
ie_dependent_option(NGRAPH_UNIT_TEST_BACKENDS_ENABLE "Control the building of unit tests using backends" ON
|
|
|
|
"NGRAPH_UNIT_TEST_ENABLE" OFF)
|
2021-09-20 10:37:32 -05:00
|
|
|
ie_option(OPENVINO_DEBUG_ENABLE "Enable output for OPENVINO_DEBUG statements" OFF)
|
2021-08-25 10:04:12 -05:00
|
|
|
ie_option(ENABLE_REQUIREMENTS_INSTALL "Dynamic dependencies install" ON)
|
2021-07-16 10:55:05 -05:00
|
|
|
|
|
|
|
# WA for ngraph python build on Windows debug
|
|
|
|
list(REMOVE_ITEM IE_OPTIONS NGRAPH_UNIT_TEST_ENABLE NGRAPH_UNIT_TEST_BACKENDS_ENABLE)
|
|
|
|
|
2020-12-22 09:44:59 -06:00
|
|
|
#
|
2021-06-24 05:14:04 -05:00
|
|
|
# Process featues
|
2020-12-22 09:44:59 -06:00
|
|
|
#
|
|
|
|
|
2021-06-24 05:14:04 -05:00
|
|
|
if(NGRAPH_DEBUG_ENABLE)
|
|
|
|
add_definitions(-DNGRAPH_DEBUG_ENABLE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_PROFILING_RAW)
|
|
|
|
add_definitions(-DENABLE_PROFILING_RAW=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_MYRIAD)
|
|
|
|
add_definitions(-DENABLE_MYRIAD=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_MYRIAD_NO_BOOT AND ENABLE_MYRIAD )
|
|
|
|
add_definitions(-DENABLE_MYRIAD_NO_BOOT=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_CLDNN)
|
|
|
|
add_definitions(-DENABLE_CLDNN=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_MKL_DNN)
|
|
|
|
add_definitions(-DENABLE_MKL_DNN=1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_GNA)
|
|
|
|
add_definitions(-DENABLE_GNA)
|
|
|
|
|
2021-10-04 20:26:01 -05:00
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.4)
|
2021-06-24 05:14:04 -05:00
|
|
|
message(WARNING "${GNA_LIBRARY_VERSION} is not supported on GCC version ${CMAKE_CXX_COMPILER_VERSION}. Fallback to GNA1")
|
|
|
|
set(GNA_LIBRARY_VERSION GNA1)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2020-12-22 09:44:59 -06:00
|
|
|
print_enabled_features()
|