Skip to content

Commit 752cc26

Browse files
committed
dnn: use OpenVINO 2021.2 defines
original commit: 4699d2b
1 parent 7631056 commit 752cc26

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmake/OpenCVDetectInferenceEngine.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ endif()
135135

136136
if(INF_ENGINE_TARGET)
137137
if(NOT INF_ENGINE_RELEASE)
138-
message(WARNING "InferenceEngine version has not been set, 2021.1 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors.")
138+
message(WARNING "InferenceEngine version has not been set, 2021.2 will be used by default. Set INF_ENGINE_RELEASE variable if you experience build errors.")
139139
endif()
140-
set(INF_ENGINE_RELEASE "2021010000" CACHE STRING "Force IE version, should be in form YYYYAABBCC (e.g. 2020.1.0.2 -> 2020010002)")
140+
set(INF_ENGINE_RELEASE "2021020000" CACHE STRING "Force IE version, should be in form YYYYAABBCC (e.g. 2020.1.0.2 -> 2020010002)")
141141
set_target_properties(${INF_ENGINE_TARGET} PROPERTIES
142142
INTERFACE_COMPILE_DEFINITIONS "HAVE_INF_ENGINE=1;INF_ENGINE_RELEASE=${INF_ENGINE_RELEASE}"
143143
)

modules/dnn/src/op_inf_engine.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
#define INF_ENGINE_RELEASE_2020_3 2020030000
2929
#define INF_ENGINE_RELEASE_2020_4 2020040000
3030
#define INF_ENGINE_RELEASE_2021_1 2021010000
31+
#define INF_ENGINE_RELEASE_2021_2 2021020000
3132

3233
#ifndef INF_ENGINE_RELEASE
33-
#warning("IE version have not been provided via command-line. Using 2021.1 by default")
34-
#define INF_ENGINE_RELEASE INF_ENGINE_RELEASE_2021_1
34+
#warning("IE version have not been provided via command-line. Using 2021.2 by default")
35+
#define INF_ENGINE_RELEASE INF_ENGINE_RELEASE_2021_2
3536
#endif
3637

3738
#define INF_ENGINE_VER_MAJOR_GT(ver) (((INF_ENGINE_RELEASE) / 10000) > ((ver) / 10000))

0 commit comments

Comments
 (0)