diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch | 172 |
1 files changed, 0 insertions, 172 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch deleted file mode 100644 index 1f64ce21..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-inference-engine-use-system-installed-packages.patch +++ /dev/null | |||
@@ -1,172 +0,0 @@ | |||
1 | From a8b6a2e251c42a393218174c6737208760d2e1c1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Wed, 10 Jun 2020 09:43:55 +0800 | ||
4 | Subject: [PATCH] inference-engine: use system installed packages | ||
5 | |||
6 | Use installed versions of ade, protobuf and tbb. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
11 | --- | ||
12 | cmake/dependencies.cmake | 18 ------------------ | ||
13 | inference-engine/CMakeLists.txt | 2 +- | ||
14 | inference-engine/cmake/ie_parallel.cmake | 7 +------ | ||
15 | .../src/inference_engine/CMakeLists.txt | 19 ------------------- | ||
16 | .../common_test_utils/CMakeLists.txt | 4 +--- | ||
17 | .../unit_test_utils/CMakeLists.txt | 3 +-- | ||
18 | inference-engine/thirdparty/CMakeLists.txt | 5 ++--- | ||
19 | 7 files changed, 6 insertions(+), 52 deletions(-) | ||
20 | |||
21 | diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake | ||
22 | index 6a44c8769e..a128eb63a1 100644 | ||
23 | --- a/cmake/dependencies.cmake | ||
24 | +++ b/cmake/dependencies.cmake | ||
25 | @@ -13,25 +13,7 @@ if(CMAKE_CROSSCOMPILING AND NGRAPH_ONNX_IMPORT_ENABLE) | ||
26 | |||
27 | set(protoc_version "3.7.1") | ||
28 | if(CMAKE_HOST_SYSTEM_NAME MATCHES Linux) | ||
29 | - RESOLVE_DEPENDENCY(SYSTEM_PROTOC_ROOT | ||
30 | - ARCHIVE_LIN "protoc-${protoc_version}-linux-x86_64.tar.gz" | ||
31 | - TARGET_PATH "${TEMP}/protoc-${protoc_version}-linux-x86_64") | ||
32 | - debug_message(STATUS "host protoc-${protoc_version} root path = " ${SYSTEM_PROTOC_ROOT}) | ||
33 | else() | ||
34 | message(FATAL_ERROR "Unsupported host system (${CMAKE_HOST_SYSTEM_NAME}) and arch (${CMAKE_HOST_SYSTEM_PROCESSOR}) for cross-compilation") | ||
35 | endif() | ||
36 | - | ||
37 | - reset_deps_cache(SYSTEM_PROTOC) | ||
38 | - | ||
39 | - message("${SYSTEM_PROTOC_ROOT}/bin") | ||
40 | - find_program( | ||
41 | - SYSTEM_PROTOC | ||
42 | - NAMES protoc | ||
43 | - PATHS "${SYSTEM_PROTOC_ROOT}/bin" | ||
44 | - NO_DEFAULT_PATH) | ||
45 | - if(NOT SYSTEM_PROTOC) | ||
46 | - message(FATAL_ERROR "[ONNX IMPORTER] Missing host protoc binary") | ||
47 | - endif() | ||
48 | - | ||
49 | - update_deps_cache(SYSTEM_PROTOC "${SYSTEM_PROTOC}" "Path to host protoc for ONNX Importer") | ||
50 | endif() | ||
51 | diff --git a/inference-engine/CMakeLists.txt b/inference-engine/CMakeLists.txt | ||
52 | index a3e4f74c40..76b09683dd 100644 | ||
53 | --- a/inference-engine/CMakeLists.txt | ||
54 | +++ b/inference-engine/CMakeLists.txt | ||
55 | @@ -56,7 +56,7 @@ function(ie_developer_export) | ||
56 | APPEND FILE "${CMAKE_BINARY_DIR}/targets_developer.cmake") | ||
57 | |||
58 | # Custom target to build only Inference Engine Developer Package targets | ||
59 | - add_custom_target(ie_dev_targets ALL DEPENDS ${OpenVINODeveloperPackageTargets} ${IEDeveloperPackageTargets} gflags | ||
60 | + add_custom_target(ie_dev_targets ALL DEPENDS ${OpenVINODeveloperPackageTargets} ${IEDeveloperPackageTargets} | ||
61 | inference_engine_ir_reader inference_engine_ir_v7_reader) | ||
62 | endfunction() | ||
63 | |||
64 | diff --git a/inference-engine/cmake/ie_parallel.cmake b/inference-engine/cmake/ie_parallel.cmake | ||
65 | index f8988aa105..28e79417f4 100644 | ||
66 | --- a/inference-engine/cmake/ie_parallel.cmake | ||
67 | +++ b/inference-engine/cmake/ie_parallel.cmake | ||
68 | @@ -67,13 +67,8 @@ function(set_ie_threading_interface_for TARGET_NAME) | ||
69 | set(IE_THREAD_DEFINE "IE_THREAD_SEQ") | ||
70 | |||
71 | if (THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") | ||
72 | - if (TBB_FOUND) | ||
73 | set(IE_THREAD_DEFINE "IE_THREAD_TBB") | ||
74 | - ie_target_link_libraries(${TARGET_NAME} ${LINK_TYPE} ${TBB_IMPORTED_TARGETS}) | ||
75 | - else () | ||
76 | - ext_message(WARNING "TBB was not found by the configured TBB_DIR path.\ | ||
77 | - SEQ method will be used for ${TARGET_NAME}") | ||
78 | - endif () | ||
79 | + target_link_libraries(${TARGET_NAME} INTERFACE tbb tbbmalloc) | ||
80 | elseif (THREADING STREQUAL "OMP") | ||
81 | if (WIN32) | ||
82 | set(omp_lib_name libiomp5md) | ||
83 | diff --git a/inference-engine/src/inference_engine/CMakeLists.txt b/inference-engine/src/inference_engine/CMakeLists.txt | ||
84 | index f012a038a2..3bba22215e 100644 | ||
85 | --- a/inference-engine/src/inference_engine/CMakeLists.txt | ||
86 | +++ b/inference-engine/src/inference_engine/CMakeLists.txt | ||
87 | @@ -216,25 +216,6 @@ list(APPEND core_components ngraph) | ||
88 | if((THREADING STREQUAL "TBB" OR THREADING STREQUAL "TBB_AUTO") AND TBBROOT MATCHES ${TEMP}) | ||
89 | ie_cpack_add_component(tbb REQUIRED) | ||
90 | list(APPEND core_components tbb) | ||
91 | - | ||
92 | - install(DIRECTORY "${TBB}/include" | ||
93 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
94 | - COMPONENT tbb) | ||
95 | - install(DIRECTORY "${TBB}/lib" | ||
96 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
97 | - COMPONENT tbb) | ||
98 | - if(EXISTS "${TBB}/bin") | ||
99 | - install(DIRECTORY "${TBB}/bin" | ||
100 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
101 | - COMPONENT tbb) | ||
102 | - endif() | ||
103 | - install(FILES "${TBB}/LICENSE" | ||
104 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb | ||
105 | - COMPONENT tbb) | ||
106 | - install(FILES "${TBB}/cmake/TBBConfig.cmake" | ||
107 | - "${TBB}/cmake/TBBConfigVersion.cmake" | ||
108 | - DESTINATION ${IE_CPACK_IE_DIR}/external/tbb/cmake | ||
109 | - COMPONENT tbb) | ||
110 | endif() | ||
111 | |||
112 | ie_cpack_add_component(core REQUIRED DEPENDS ${core_components}) | ||
113 | diff --git a/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt b/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
114 | index ca58264bd5..11df150845 100644 | ||
115 | --- a/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
116 | +++ b/inference-engine/tests/ie_test_utils/common_test_utils/CMakeLists.txt | ||
117 | @@ -26,7 +26,7 @@ function(add_gtest_libraries) | ||
118 | PROPERTIES FOLDER thirdparty) | ||
119 | endfunction() | ||
120 | |||
121 | -add_gtest_libraries() | ||
122 | +#add_gtest_libraries() | ||
123 | |||
124 | if (MSVC) | ||
125 | set(PUGI pugixml_mt) | ||
126 | @@ -37,8 +37,6 @@ endif () | ||
127 | list(APPEND EXPORT_DEPENDENCIES | ||
128 | ${PUGI} | ||
129 | ${NGRAPH_LIBRARIES} | ||
130 | - gtest | ||
131 | - gtest_main | ||
132 | ) | ||
133 | |||
134 | set(TARGET_NAME commonTestUtils) | ||
135 | diff --git a/inference-engine/tests/ie_test_utils/unit_test_utils/CMakeLists.txt b/inference-engine/tests/ie_test_utils/unit_test_utils/CMakeLists.txt | ||
136 | index 5413d13895..3f2803750f 100644 | ||
137 | --- a/inference-engine/tests/ie_test_utils/unit_test_utils/CMakeLists.txt | ||
138 | +++ b/inference-engine/tests/ie_test_utils/unit_test_utils/CMakeLists.txt | ||
139 | @@ -8,8 +8,7 @@ add_subdirectory(mocks/mock_engine) | ||
140 | |||
141 | list(APPEND EXPORT_DEPENDENCIES | ||
142 | commonTestUtils_s | ||
143 | - inference_engine_s | ||
144 | - gmock) | ||
145 | + inference_engine_s) | ||
146 | |||
147 | addIeTarget( | ||
148 | NAME ${TARGET_NAME} | ||
149 | diff --git a/inference-engine/thirdparty/CMakeLists.txt b/inference-engine/thirdparty/CMakeLists.txt | ||
150 | index fa2a4d02d8..67d3b7ad05 100644 | ||
151 | --- a/inference-engine/thirdparty/CMakeLists.txt | ||
152 | +++ b/inference-engine/thirdparty/CMakeLists.txt | ||
153 | @@ -62,14 +62,13 @@ else() | ||
154 | endif() | ||
155 | |||
156 | add_subdirectory(stb_lib) | ||
157 | -add_subdirectory(ade) | ||
158 | add_subdirectory(fluid/modules/gapi) | ||
159 | |||
160 | -set_target_properties(ade fluid stb_image PROPERTIES FOLDER thirdparty) | ||
161 | +set_target_properties(fluid stb_image PROPERTIES FOLDER thirdparty) | ||
162 | |||
163 | # developer package | ||
164 | |||
165 | -ie_developer_export_targets(ade fluid) | ||
166 | +ie_developer_export_targets(fluid) | ||
167 | |||
168 | if (NOT USE_SYSTEM_PUGIXML) | ||
169 | set_target_properties(pugixml PROPERTIES FOLDER thirdparty) | ||
170 | -- | ||
171 | 2.29.2 | ||
172 | |||