Skip to content

Commit 1c2ede8

Browse files
authored
Merge pull request #400 from intel/ankit/upgrade_openvino_tookit
Upgrade OpenVINO Tookit v2024.2
2 parents 3466f3b + aa8e4fb commit 1c2ede8

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

cmake/onnxruntime_providers_openvino.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
# Header paths
1919
find_package(OpenVINO REQUIRED COMPONENTS Runtime ONNX)
20-
if(OpenVINO_VERSION VERSION_LESS 2023.0)
21-
message(FATAL_ERROR "OpenVINO 2023.0 and newer are supported. Please, latest OpenVINO release")
20+
if(OpenVINO_VERSION VERSION_LESS 2023.3)
21+
message(FATAL_ERROR "OpenVINO 2023.3 and newer are supported. Please, use latest OpenVINO release")
2222
endif()
2323

2424
if (WIN32)

onnxruntime/core/providers/openvino/ov_versions/capability.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,16 @@ GetCapability::GetCapability(const GraphViewer& graph_viewer_param,
3535
device_type_ = "CPU";
3636
if (enable_qdq_optimizer) npu_qdq_optimizer_enabled = true;
3737
}
38-
#if OPENVINO_VERSION_MAJOR == 2023 && OPENVINO_VERSION_MINOR == 1
39-
data_ops_ = new DataOps(graph_viewer_, V_2023_1, device_type_, npu_qdq_optimizer_enabled);
40-
#elif OPENVINO_VERSION_MAJOR == 2023 && OPENVINO_VERSION_MINOR == 2
41-
data_ops_ = new DataOps(graph_viewer_, V_2023_2, device_type_, npu_qdq_optimizer_enabled);
42-
#elif OPENVINO_VERSION_MAJOR == 2023 && OPENVINO_VERSION_MINOR == 3
38+
#if OPENVINO_VERSION_MAJOR == 2023 && OPENVINO_VERSION_MINOR == 3
4339
data_ops_ = new DataOps(graph_viewer_, V_2023_3, device_type_, npu_qdq_optimizer_enabled);
4440
#elif OPENVINO_VERSION_MAJOR == 2024 && OPENVINO_VERSION_MINOR == 0
4541
data_ops_ = new DataOps(graph_viewer_, V_2024_0, device_type_, npu_qdq_optimizer_enabled);
4642
#elif OPENVINO_VERSION_MAJOR == 2024 && OPENVINO_VERSION_MINOR == 1
4743
data_ops_ = new DataOps(graph_viewer_, V_2024_1, device_type_, npu_qdq_optimizer_enabled);
44+
#elif OPENVINO_VERSION_MAJOR == 2024 && OPENVINO_VERSION_MINOR == 2
45+
data_ops_ = new DataOps(graph_viewer_, V_2024_2, device_type_, npu_qdq_optimizer_enabled);
4846
#else
49-
data_ops_ = new DataOps(graph_viewer_, V_2024_1, device_type_, npu_qdq_optimizer_enabled);
47+
data_ops_ = new DataOps(graph_viewer_, V_2024_2, device_type_, npu_qdq_optimizer_enabled);
5048
#endif
5149
}
5250

onnxruntime/core/providers/openvino/ov_versions/data_ops.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void DataOps::populate_op_mode_supported() {
363363

364364
// populate unsupportedmode_t
365365
{
366-
UnsupportedOpMode obj = {{V_2024_1},
366+
UnsupportedOpMode obj = {{V_2024_1, V_2024_2},
367367
[this](const Node* node, const InitializedTensorSet&) {
368368
// If the Input of ReduceMax op is UINT8, it is rejected (Due to output mismatch)
369369
for (size_t i = 0; i < node->InputDefs().size(); i++) {
@@ -378,7 +378,7 @@ void DataOps::populate_op_mode_supported() {
378378
op_list_.insert({"ReduceMax", obj});
379379
}
380380
{
381-
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1},
381+
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2},
382382
[this](const Node* node, const InitializedTensorSet&) {
383383
const auto& input_arg = node->InputDefs()[1];
384384
auto shape = input_arg->Shape();
@@ -395,7 +395,7 @@ void DataOps::populate_op_mode_supported() {
395395
op_list_.insert({"Reshape", obj});
396396
}
397397
{
398-
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1},
398+
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2},
399399
[this](const Node* node, const InitializedTensorSet&) {
400400
// If the operator is unsqueeze
401401
// If axes is an input, then we cannot produce a static graph.
@@ -410,7 +410,7 @@ void DataOps::populate_op_mode_supported() {
410410
op_list_.insert({"Unsqueeze", obj});
411411
}
412412
{
413-
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1},
413+
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2},
414414
[this](const Node* node, const InitializedTensorSet&) {
415415
// check for attributes
416416
auto& upsample_attr = node->GetAttributes();

onnxruntime/core/providers/openvino/ov_versions/data_ops.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ enum versionNum {
2828
V_2023_2,
2929
V_2023_3,
3030
V_2024_0,
31-
V_2024_1
31+
V_2024_1,
32+
V_2024_2
3233
};
3334

3435
using VersionNum = enum versionNum;

0 commit comments

Comments
 (0)