-
Notifications
You must be signed in to change notification settings - Fork 2.8k
CMakeOptionsForCustomCompilation
Ilya Lavrenov edited this page Nov 13, 2020
·
29 revisions
- Disable / enable plugins build and other components
- Options affecting binary size
- Test capabilities
- Other options
-
ENABLE_MKL_DNNenables CPU plugin compilation:-
ONis default for x86 platforms,OFFotherwise.
-
-
ENABLE_CLDNNenables GPU plugin compilation:-
ONis default for x86 platforms, not available otherwise.
-
-
ENABLE_GNAenables GNA plugin compilation:-
ONis default for x86 platforms, not available otherwise.
-
-
ENABLE_VPUenables VPU (Myriad, HDDL) components build:-
ONis default.
-
-
ENABLE_MYRIADenables MYRIAD plugin build:-
ONis default.
-
-
NGRAPH_ONNX_IMPORT_ENABLEenables ONNX importer plugin for Inference Engine:-
ONis default.
-
-
ENABLE_SAMPLESenables Inference Engine samples build:-
ONis default.
-
-
ENABLE_PYTHONenables Python API build:-
OFFis default.
-
-
ENABLE_JAVAenables Java API build:-
OFFis default.
-
-
ENABLE_TESTSenables tests compilation:-
OFFis default.
-
-
NGRAPH_UNIT_TEST_ENABLEenables ngraph unit tests:- The value is the same as for the option
ENABLE_TESTS.
- The value is the same as for the option
-
ENABLE_DOCSenables build of OpenVINO documentation:-
OFFis default.
-
-
IE_EXTRA_MODULESspecifies path to add extra OpenVINO modules to the build.- See OpenVINO Contrib to add extra modules from.
-
USE_SYSTEM_PUGIXMLbuilds with system version of pugixml if it's available on the system.-
OFFis default. - Inference Engine thirdparty pugixml is used by default.
-
-
NGRAPH_USE_PROTOBUF_LITEcompiles and links with protobuf lite:-
OFFis default. - Affects ONNX importer component only.
-
-
NGRAPH_USE_SYSTEM_PROTOBUFuse protobuf installed on the system:-
OFFis default. - Affects ONNX importer component only.
-
-
ENABLE_LTOboolean option to enable Link Time Optimizations:-
OFFis default, because it takes longer time to link binaries. -
ONis enabled for OpenVINO release binaries - Available on Unix compilers only like GCC or CLANG.
- Gives 30% decrease in binary size together with other optimizations option using to build OpenVINO.
-
-
THREADINGpoints to OpenVINO threading interface:-
TBBis a default option, enables build with Intel TBB andtbb::static_partitioner. -
TBB_AUTOenables build with Intel TBB. -
OMPenables build with Intel OpenMP. -
SEQdisable threading optimizations. Can be used in cases when TBB binaries are absent. -
Note: because TBB is a template library, it increase binary size because of multiple instantiations of
tbb::parallel_for
-
-
ENABLE_SSE42enables SSE4.2 optimizations:-
ONis default for x86 platforms, not available for other platforms. - Affects only Inference Engine common part and preprocessing plugin, does not affect mkldnn library
-
-
ENABLE_AVX2enables AVX2 optimizations:-
ONis default for x86 platforms, not available for other platforms. - Affects only Inference Engine common part and preprocessing plugin, does not affect mkldnn library
-
-
ENABLE_AVX512Fenables AVX512 optimizations:-
ONis default for x86 platforms, not available for other platforms. - Affects only Inference Engine common part and preprocessing plugin, does not affect mkldnn library
-
-
ENABLE_PROFILING_ITTenables profiling with Intel ITT and VTune. Default isOFF, because it increases binary size.
-
ENABLE_SANITIZERbuilds with clang address sanitizer support:-
OFFis default.
-
-
ENABLE_THREAD_SANITIZERbuilds with clang thread-sanitizer support:-
OFFis default.
-
-
COVERAGEadds option to enable coverage. See dedicated guide how to measure test coverage:-
OFFis default.
-
-
ENABLE_FUZZINGenables instrumentation of code for fuzzing:-
OFFis default.
-
-
ENABLE_CPPLINTenables code style check using cpplint static code checker:-
ONis default.
-
-
ENABLE_CLANG_FORMATenables Clang format code style check:-
ONis default. - Used only for ngraph component.
-
-
TREAT_WARNING_AS_ERRORtreats all warnings as error:-
OFFis default.
-
-
ENABLE_FASTER_BUILDenables precompiled headers and unity build using CMake:-
OFFis default.
-
-
ENABLE_INTEGRITYCHECKbuilds DLLs with /INTEGRITYCHECK flag:-
OFFis default. - Available on MSVC compiler only.
-
© Copyright 2018-2024, OpenVINO team
- Home
- General resources
- How to build
-
Developer documentation
- Inference Engine architecture
- CPU plugin
- GPU plugin
- HETERO plugin architecture
- Snippets
- Sample for IE C++/C/Python API
- Proxy plugin (Concept)
- Tests