onnxruntime/cmake/external/openvino.cmake
suryasidd e9e777925f [OpenVINO-EP] Added support for OpenVINO R1.1 (#1438)
* Initial commit for OpenVINO R1

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Fixed MO dynamic shape error

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Add debug messages for failure

* Update install_openvino.sh script

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Try catch included.  Return type of Isgraphsupported function changed to void

* Removed error_msg variable and commented code

* formatting cleanup

* Added missing return statement

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Changed MO to be compatible with both R5 and R1

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Updated docker scripts to include openvino version number

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Ignore compiler warnings from external headers

* Updated dockerfiles

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Code cleanup using clang-format

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Suppress model optimizer info error

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Python code formatting using auto pep8

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>

* Updated documentation

Signed-off-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
2019-07-19 00:52:15 -07:00

29 lines
No EOL
980 B
CMake

# Building from source is currently unsupported.
# Please follow instructions in the documentation to install OpenVINO binaries.
include (ExternalProject)
set(OPENVINO_URL https://github.com/opencv/dldt.git)
set(OPENVINO_TAG 2019_R1.1)
set(OPENVINO_SHARED_LIB libinference_engine.so)
if(onnxruntime_USE_OPENVINO)
set(OPENVINO_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/openvino/src/dldt)
set(OPENVINO_INSTALL ${CMAKE_CURRENT_BINARY_DIR}/openvino/install)
set(OPENVINO_LIB_DIR ${OPENVINO_SOURCE}/inference-engine/bin/intel64/Release/lib)
set(OPENVINO_INCLUDE_DIR ${OPENVINO_SOURCE}/inference-engine/include)
ExternalProject_Add(project_openvino
PREFIX openvino
GIT_REPOSITORY ${OPENVINO_URL}
GIT_TAG ${OPENVINO_TAG}
SOURCE_DIR ${OPENVINO_SOURCE}
SOURCE_SUBDIR inference-engine
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OPENVINO_INSTALL}
)
link_directories(${OPENVINO_LIB_DIR})
endif()