Skip to content

Commit

Permalink
Moved current IE API to separate folder (openvinotoolkit#6735)
Browse files Browse the repository at this point in the history
* Moved current IE API to separate folder

* Fix install

* Fix documentation

* Fixed install path

* Try to fix CI

* Changed installation path

* Use ONNXRuntime rel-1.8.1 version
  • Loading branch information
ilyachur authored and andrei-cv committed Aug 30, 2021
1 parent e92515e commit ab0caa5
Show file tree
Hide file tree
Showing 56 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .ci/azure/ci_utils/onnxruntime/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rel-1.7.1
rel-1.8.1
4 changes: 2 additions & 2 deletions .ci/azure/linux_onnxruntime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
WORK_DIR: $(Pipeline.Workspace)/_w
MODELS_DIR: /mount/cinfsshare/onnxtestdata
TMP_DIR: /mnt/tmp
INSTALL_DIR: $(WORK_DIR)/install_pkg
INSTALL_DIR: $(WORK_DIR)/install_pkg/openvino
BUILD_DIR: $(WORK_DIR)/build
ONNXRUNTIME_UTILS: $(REPO_DIR)/.ci/azure/ci_utils/onnxruntime
ONNXRUNTIME_BUILD_DIR: $(ONNXRUNTIME_REPO_DIR)/build
Expand All @@ -29,6 +29,7 @@ jobs:
echo Python info ; which python ; python --version
echo Java info ; which java ; java -version
echo gcc info ; which gcc ; gcc --version
echo cmake info ; which cmake ; cmake --version
lsb_release
env
cat /proc/cpuinfo
Expand Down Expand Up @@ -113,7 +114,6 @@ jobs:

- script: |
source $(INSTALL_DIR)/bin/setupvars.sh
echo "2021.2" > $(INSTALL_DIR)/deployment_tools/inference_engine/version.txt
CXXFLAGS="-Wno-error=deprecated-declarations" ./build.sh --config RelWithDebInfo --use_openvino CPU_FP32 --build_shared_lib --parallel --skip_tests --build_dir $(ONNXRUNTIME_BUILD_DIR)
workingDirectory: $(ONNXRUNTIME_REPO_DIR)
displayName: 'Build ONNX Runtime'
Expand Down
2 changes: 1 addition & 1 deletion cmake/developer_package/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ macro(ie_parse_ci_build_number)
return()
endif()

set(ie_version_hpp "${OpenVINO_SOURCE_DIR}/inference-engine/include/ie_version.hpp")
set(ie_version_hpp "${OpenVINO_SOURCE_DIR}/inference-engine/include/ie/ie_version.hpp")
if(NOT EXISTS ${ie_version_hpp})
message(FATAL_ERROR "File ie_version.hpp with IE_VERSION definitions is not found")
endif()
Expand Down
10 changes: 5 additions & 5 deletions docs/doxygen/doxygen-ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ openvino/docs/optimization_guide/dldt_optimization_guide.md
openvino/docs/IE_DG/ShapeInference.md
build/docs/openvino_docs.xml
openvino/docs/install_guides/installing-openvino-linux-ivad-vpu.md
inference-engine/include/ie_parallel.hpp
inference-engine/include/ie_plugin_config.hpp
inference-engine/include/vpu/myriad_config.hpp
inference-engine/include/vpu/vpu_config.hpp
inference-engine/include/vpu/vpu_plugin_config.hpp
inference-engine/include/ie/ie_parallel.hpp
inference-engine/include/ie/ie_plugin_config.hpp
inference-engine/include/ie/vpu/myriad_config.hpp
inference-engine/include/ie/vpu/vpu_config.hpp
inference-engine/include/ie/vpu/vpu_plugin_config.hpp
4 changes: 2 additions & 2 deletions inference-engine/ie_bridges/c/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ add_library(${TARGET_NAME} SHARED ${HEADERS} ${SOURCES})
target_link_libraries(${TARGET_NAME} PRIVATE inference_engine)

target_include_directories(${TARGET_NAME} PUBLIC
$<INSTALL_INTERFACE:${IE_CPACK_IE_DIR}/include>
$<INSTALL_INTERFACE:${IE_CPACK_IE_DIR}/include/ie>
$<BUILD_INTERFACE:${InferenceEngine_C_API_SOURCE_DIR}/include>)

add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME})
Expand All @@ -40,5 +40,5 @@ install(TARGETS ${TARGET_NAME} EXPORT InferenceEngineTargets
LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT core_c)

install(DIRECTORY ${InferenceEngine_C_API_SOURCE_DIR}/include/
DESTINATION ${IE_CPACK_IE_DIR}/include
DESTINATION ${IE_CPACK_IE_DIR}/include/ie
COMPONENT core_c_dev)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions inference-engine/src/inference_engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ endif()

addVersionDefines(ie_version.cpp CI_BUILD_NUMBER)

set (PUBLIC_HEADERS_DIR "${IE_MAIN_SOURCE_DIR}/include")
set (PUBLIC_HEADERS_DIR "${IE_MAIN_SOURCE_DIR}/include/ie")

file (GLOB_RECURSE PUBLIC_HEADERS
${PUBLIC_HEADERS_DIR}/*.hpp
Expand Down Expand Up @@ -167,7 +167,7 @@ target_link_libraries(${TARGET_NAME} PRIVATE pugixml::static openvino::itt ${CMA

target_include_directories(${TARGET_NAME} INTERFACE
$<BUILD_INTERFACE:${PUBLIC_HEADERS_DIR}>
$<INSTALL_INTERFACE:${IE_CPACK_IE_DIR}/include>
$<INSTALL_INTERFACE:${IE_CPACK_IE_DIR}/include/ie>
PRIVATE $<TARGET_PROPERTY:${TARGET_NAME}_plugin_api,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:${TARGET_NAME}_legacy,INTERFACE_INCLUDE_DIRECTORIES>)

Expand Down Expand Up @@ -269,7 +269,7 @@ endif()
ie_cpack_add_component(core REQUIRED DEPENDS ${core_components})
ie_cpack_add_component(core_dev REQUIRED core ngraph_dev)

install(DIRECTORY "${PUBLIC_HEADERS_DIR}" DESTINATION ${IE_CPACK_IE_DIR}
install(DIRECTORY "${PUBLIC_HEADERS_DIR}" DESTINATION ${IE_CPACK_IE_DIR}/include
COMPONENT core_dev)

install(TARGETS ${TARGET_NAME} EXPORT InferenceEngineTargets
Expand Down Expand Up @@ -307,7 +307,7 @@ configure_package_config_file("${OpenVINO_SOURCE_DIR}/cmake/templates/InferenceE
INSTALL_DESTINATION "${CMAKE_INSTALL_PREFIX}"
PATH_VARS ${PATH_VARS})

set(IE_INCLUDE_DIR "include")
set(IE_INCLUDE_DIR "include/ie")
set(IE_NGRAPH_DIR "../ngraph/cmake")
set(IE_TBB_DIR "${IE_TBB_DIR_INSTALL}")
set(IE_PARALLEL_CMAKE "share/ie_parallel.cmake")
Expand Down

0 comments on commit ab0caa5

Please sign in to comment.