* Docs: Update the doc on default hint and execution devices property (#14836) * Docs: Update to LATENCY as default hint * Docs: Update the doc on execution devices property * Update auto_device_selection.md Co-authored-by: Yuan Xu <yuan1.xu@intel.com> * 22.3: remove tbb version check for using tbbbind static library (#15700) * update symbolic link on uninstall page (#15720) * Update deployment_simplified.svg (#15681) * [NormalizeL2] normalization of reduction axes (#15841) (#15879) * Add test for negative axes, preliminary solution to solve uncorrect results * Normalize axes in operation NormalizeL2 * Add test for negative axes * Add EOF * [67541] - face-detection-0205, 0206 issues fixed (incorrect dimensions error) (#14687) * [CVS-67541] - face-detection-0205, 0206 issues fixed (incorrect dimensions error) * [CVS-67541] - face-detection-0205, 0206 issues fixed * Conversion fail for ov::hint::performance_mode with UNDEFINED value (#15903) * Update ov::hint::performance_hint UNDEFINED value from empty string to "UNDEFINED". Update benchmark Python version. Update the description about hint setting within benchmark APP README and help message. * Drop the reduntant changes. * Supported OpenSUSE 15.3 (#15897) (#15907) * [DOCS] Structure change for 'AUTO Device Selection' article - post merge fix (#15752) * aligning with 14750 * Fixed samples build on Debian 10 with cmake 3.13 (#15939) * Fixed samples build on Debian 10 with cmake 3.13 * Use 2022/3 branches * Limit setuptools version * Fixed issues in setupvars.sh (#15884) (#15952) * Fixed issues with setupvar.sh * Fixes setupvars realpath error --------- Co-authored-by: Otoka, Tomasz <tomasz.otoka@intel.com> * Apivalidator (#15951) * Improved API validator logic (#15942) * Fix for apiValidator when more than 1 target needs to be checked (#15950) * Prevent infinite recursion * [Snippets] Added matcher_name in ConvertConstantsToScalars pass (#15977) * Install libtbb2 instead of libtbb12 on U22.04 (#15993) * Apply Apivalidator to extra TBB libs (#15998) * [GNA] Changed max layer limit tests to avoid SEH exceptions (#15015) (#15460) * splitted test model * Changed test config * Set SF for all inputs * [Transformations] Enable missing runtime info check (#15796) (#15972) * Add rt info propagation to StridesOptimization * Enable rt info check for pruning tests * Fixed clang-format for C API (#16025) * Port to 2022.3 from master (#16049) * notebooks update (#16091) 20230302220806 * Update Customize_Model_Optimizer.md (#15687) Recreating #14062 * fix benchmark_app python to support YES and NO values for -pin parameter (#16042) * support YES and NO for -pin * add if property_name == 'AFFINITY' --------- Co-authored-by: Chen Peter <peter.chen@intel.com> * [Docs] nv12 changes port to 22.3 (#16115) Port: #15370 #16004 add single-plane input information create single-plane cpp snippet menu fix update formatting for sphinx directives additional snippet fixes --------- Co-authored-by: Ilya Churaev <ilyachur@gmail.com> Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com> * [DOCS] Port Frontend Extensions and OTX page (#16135) * [DOCS] Add OTX page to Ecosystem (#16118) * add otx page * change ecosystem page * add ote img * move ote page to rst * fix path * add path * img test * otx page * add docs to ecosystem page * [DOCS] Fix Frontend Extensions snippets (#16120) * move fe to rst * fix code snippets * add more line breaks * fix tabsets * fix link * fix anchor * test * fixing link * change tab directive * fix tabs * align code tabs * fix link * fix snippets * add dlwb to ecosystem * change ecosystem menu * exclude fe page * Port to 2022.3 (#16174) * Remove setuptools upperbound (#16054) * Added missed licenses to openvino-dev (#16057) * Fixed OpenMP + debian package code-path (#16058) * [CPU] Prevent out of bounds read inside Graph::InferDynamic (#16067) * Fixed compilation on Debian 11 with gcc 12.2 (#16096) * Fix for OpenCL --------- Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com> Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com> * Docs benchmarks page update port 22.3 (#16187) changes to benchmarks page to align with theme * Andreib/2022.3 myriad plugin obs (#16079) * Changed to OBS firmware * Changed dependencies settings for new FW --------- Co-authored-by: Daria Mityagina <daria.mityagina@intel.com> * port-16085 (#16210) * 234 update (#16212) Adding notebook 234-encodec-audio-compression * [DOCS] Adding 'Scrollbox' - new sphinx directive (#15307) port https://github.com/openvinotoolkit/openvino/pull/15305 * [DOCS] Updating 'Prerequisites' section in `Configurations for GNA` article - for 22.3 (#16237) * issue-15090 Add command for installation of prerequisites on Linux. * DOCS-image-fix port22.3 (#16341) (#16324) (#16308) * Clearing of CustomReplacementRegistry.registry in convert_model() (#15893) (#16347) * Clearing of CustomReplacementRegistry.registry. * Added test. * Fixed clearing of pipeline config params and TF session in convert_model() (#16191) (#16346) * Fixed pipeline config params clearing. * Added clearing of TF session. Added tests. --------- Co-authored-by: Wang Wangwang <wangwang.wang@intel.com> Co-authored-by: Yuan Xu <yuan1.xu@intel.com> Co-authored-by: Fang Xu <fang.xu@intel.com> Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com> Co-authored-by: Artur Kulikowski <artur.kulikowski@intel.com> Co-authored-by: Daria Mityagina <daria.mityagina@intel.com> Co-authored-by: Wang, Yang <yang4.wang@intel.com> Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> Co-authored-by: Otoka, Tomasz <tomasz.otoka@intel.com> Co-authored-by: Alexandra Sidorova <alexandra.sidorova@intel.com> Co-authored-by: Vitaliy Urusovskij <vitaliy.urusovskij@intel.com> Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com> Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com> Co-authored-by: Haiqi Pan <haiqi.pan@intel.com> Co-authored-by: Chen Peter <peter.chen@intel.com> Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com> Co-authored-by: Ilya Churaev <ilyachur@gmail.com> Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com> Co-authored-by: Tatiana Savina <tatiana.savina@intel.com> Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com> Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com> Co-authored-by: Andrei-George Boji <andrei-george.boji@intel.com> Co-authored-by: Anastasiia Pnevskaia <anastasia.popova@intel.com>
197 lines
8.0 KiB
CMake
197 lines
8.0 KiB
CMake
# Copyright (C) 2018-2023 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#
|
|
# Common cmake options
|
|
#
|
|
|
|
ie_dependent_option (ENABLE_INTEL_CPU "CPU plugin for OpenVINO Runtime" ON "X86_64" OFF)
|
|
|
|
ie_option (ENABLE_TESTS "unit, behavior and functional tests" OFF)
|
|
|
|
ie_option (ENABLE_COMPILE_TOOL "Enables compile_tool" ON)
|
|
|
|
ie_option (ENABLE_STRICT_DEPENDENCIES "Skip configuring \"convinient\" dependencies for efficient parallel builds" ON)
|
|
|
|
ie_dependent_option (ENABLE_INTEL_GPU "GPU OpenCL-based plugin for OpenVINO Runtime" ON "X86_64;NOT APPLE;NOT MINGW;NOT WINDOWS_STORE;NOT WINDOWS_PHONE" OFF)
|
|
|
|
if (ANDROID OR (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0))
|
|
# oneDNN doesn't support old compilers and android builds for now, so we'll
|
|
# build GPU plugin without oneDNN
|
|
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT OFF)
|
|
else()
|
|
set(ENABLE_ONEDNN_FOR_GPU_DEFAULT ON)
|
|
endif()
|
|
|
|
ie_dependent_option (ENABLE_ONEDNN_FOR_GPU "Enable oneDNN with GPU support" ${ENABLE_ONEDNN_FOR_GPU_DEFAULT} "ENABLE_INTEL_GPU" OFF)
|
|
|
|
ie_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable." OFF)
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
ie_option (ENABLE_DOCS "Build docs using Doxygen" OFF)
|
|
|
|
find_package(PkgConfig QUIET)
|
|
ie_dependent_option (ENABLE_PKGCONFIG_GEN "Enable openvino.pc pkg-config file generation" ON "LINUX OR APPLE;PkgConfig_FOUND;BUILD_SHARED_LIBS" OFF)
|
|
|
|
#
|
|
# OpenVINO Runtime specific options
|
|
#
|
|
|
|
# "OneDNN library based on OMP or TBB or Sequential implementation: TBB|OMP|SEQ"
|
|
set(THREADING "TBB" 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 (default), TBB_AUTO, OMP or SEQ")
|
|
endif()
|
|
|
|
if((THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") AND
|
|
(BUILD_SHARED_LIBS OR (LINUX AND X86_64)))
|
|
set(ENABLE_TBBBIND_2_5_DEFAULT ON)
|
|
else()
|
|
set(ENABLE_TBBBIND_2_5_DEFAULT OFF)
|
|
endif()
|
|
|
|
ie_dependent_option (ENABLE_TBBBIND_2_5 "Enable TBBBind_2_5 static usage in OpenVINO runtime" ${ENABLE_TBBBIND_2_5_DEFAULT} "THREADING MATCHES TBB" OFF)
|
|
|
|
ie_dependent_option (ENABLE_INTEL_GNA "GNA support for OpenVINO Runtime" ON
|
|
"NOT APPLE;NOT ANDROID;X86_64;CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.4" OFF)
|
|
|
|
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_GAPI_PREPROCESSING "Enables G-API preprocessing" ON)
|
|
|
|
ie_option (ENABLE_MULTI "Enables MULTI Device Plugin" ON)
|
|
ie_option (ENABLE_AUTO "Enables AUTO Device Plugin" ON)
|
|
|
|
ie_option (ENABLE_AUTO_BATCH "Enables Auto-Batching Plugin" ON)
|
|
|
|
ie_option (ENABLE_HETERO "Enables Hetero Device Plugin" ON)
|
|
|
|
ie_option (ENABLE_TEMPLATE "Enable template plugin" ON)
|
|
|
|
ie_dependent_option (ENABLE_INTEL_MYRIAD_COMMON "common part of myriad plugin" ON "NOT WINDOWS_PHONE;NOT WINDOWS_STORE" OFF)
|
|
|
|
if(UNIVERSAL2)
|
|
set(ENABLE_INTEL_MYRIAD_DEFAULT OFF)
|
|
else()
|
|
set(ENABLE_INTEL_MYRIAD_DEFAULT ON)
|
|
endif()
|
|
|
|
ie_dependent_option (ENABLE_INTEL_MYRIAD "myriad targeted plugin for OpenVINO Runtime" ${ENABLE_INTEL_MYRIAD_DEFAULT} "NOT RISCV64;ENABLE_INTEL_MYRIAD_COMMON" OFF)
|
|
|
|
ie_dependent_option (ENABLE_MYRIAD_NO_BOOT "myriad plugin will skip device boot" OFF "ENABLE_INTEL_MYRIAD" OFF)
|
|
|
|
ie_dependent_option (ENABLE_GAPI_TESTS "tests for GAPI kernels" ON "ENABLE_GAPI_PREPROCESSING;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_INTEL_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 OpenVINO Runtime API correctness" ON "ENABLE_TESTS" OFF)
|
|
|
|
ie_dependent_option (ENABLE_FUNCTIONAL_TESTS "functional tests" ON "ENABLE_TESTS" OFF)
|
|
|
|
ie_option (ENABLE_SAMPLES "console samples are part of OpenVINO Runtime package" ON)
|
|
|
|
ie_option (ENABLE_OPENCV "enables custom OpenCV download" OFF)
|
|
|
|
ie_option (ENABLE_V7_SERIALIZE "enables serialization to IR v7" OFF)
|
|
|
|
set(OPENVINO_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 OpenVINO Runtime binaries" ON "THREADING MATCHES TBB;LINUX" OFF)
|
|
|
|
if(LINUX)
|
|
# Debian packages are enabled on Ubuntu systems
|
|
# so, system TBB / pugixml / OpenCL can be tried for usage
|
|
set(ENABLE_SYSTEM_LIBS_DEFAULT ON)
|
|
else()
|
|
set(ENABLE_SYSTEM_LIBS_DEFAULT OFF)
|
|
endif()
|
|
|
|
# try to search TBB from brew by default
|
|
if(APPLE AND AARCH64)
|
|
set(ENABLE_SYSTEM_TBB_DEFAULT ON)
|
|
else()
|
|
set(ENABLE_SYSTEM_TBB_DEFAULT ${ENABLE_SYSTEM_LIBS_DEFAULT})
|
|
endif()
|
|
|
|
# users wants to use his own TBB version, specific either via env vars or cmake options
|
|
if(DEFINED ENV{TBBROOT} OR DEFINED ENV{TBB_DIR} OR DEFINED TBB_DIR OR DEFINED TBBROOT)
|
|
set(ENABLE_SYSTEM_TBB_DEFAULT OFF)
|
|
endif()
|
|
|
|
# for static libraries case libpugixml.a must be compiled with -fPIC
|
|
ie_dependent_option (ENABLE_SYSTEM_PUGIXML "use the system copy of pugixml" ${ENABLE_SYSTEM_LIBS_DEFAULT} "BUILD_SHARED_LIBS" OFF)
|
|
|
|
ie_dependent_option (ENABLE_SYSTEM_TBB "use the system version of TBB" ${ENABLE_SYSTEM_TBB_DEFAULT} "THREADING MATCHES TBB" OFF)
|
|
|
|
ie_dependent_option (ENABLE_SYSTEM_OPENCL "Use the system version of OpenCL" ${ENABLE_SYSTEM_LIBS_DEFAULT} "BUILD_SHARED_LIBS;ENABLE_INTEL_GPU" OFF)
|
|
|
|
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)
|
|
|
|
find_host_package(PythonInterp 3 QUIET)
|
|
ie_option(ENABLE_OV_ONNX_FRONTEND "Enable ONNX FrontEnd" ${PYTHONINTERP_FOUND})
|
|
ie_option(ENABLE_OV_PADDLE_FRONTEND "Enable PaddlePaddle FrontEnd" ON)
|
|
ie_option(ENABLE_OV_IR_FRONTEND "Enable IR FrontEnd" ON)
|
|
ie_option(ENABLE_OV_TF_FRONTEND "Enable TensorFlow FrontEnd" ON)
|
|
ie_dependent_option(ENABLE_SYSTEM_PROTOBUF "Use system protobuf" OFF
|
|
"ENABLE_OV_ONNX_FRONTEND OR ENABLE_OV_PADDLE_FRONTEND OR ENABLE_OV_TF_FRONTEND;BUILD_SHARED_LIBS" OFF)
|
|
|
|
ie_dependent_option(ENABLE_OV_CORE_UNIT_TESTS "Enables OpenVINO core unit tests" ON "ENABLE_TESTS" OFF)
|
|
ie_option(ENABLE_OPENVINO_DEBUG "Enable output for OPENVINO_DEBUG statements" OFF)
|
|
ie_dependent_option(ENABLE_REQUIREMENTS_INSTALL "Dynamic dependencies install" ON "ENABLE_TESTS;NOT CMAKE_CROSSCOMPILING" OFF)
|
|
|
|
if(NOT BUILD_SHARED_LIBS AND ENABLE_OV_TF_FRONTEND)
|
|
set(FORCE_FRONTENDS_USE_PROTOBUF ON)
|
|
else()
|
|
set(FORCE_FRONTENDS_USE_PROTOBUF OFF)
|
|
endif()
|
|
|
|
#
|
|
# Process featues
|
|
#
|
|
|
|
if(ENABLE_OPENVINO_DEBUG)
|
|
add_definitions(-DENABLE_OPENVINO_DEBUG)
|
|
endif()
|
|
|
|
if (ENABLE_PROFILING_RAW)
|
|
add_definitions(-DENABLE_PROFILING_RAW=1)
|
|
endif()
|
|
|
|
if (ENABLE_INTEL_CPU)
|
|
add_definitions(-DENABLE_INTEL_CPU=1)
|
|
endif()
|
|
|
|
print_enabled_features()
|