Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPU] Change default value for compiler support version to 7.23 (#31622)

Bogdan Pereanu2ecca3d0c5b0
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp
index f8d2ce4e857..221cd22f135 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/config.hpp
@@ -295,7 +295,7 @@ struct OptionBase {
/// Overload this for options conditioned by compiler version
static uint32_t compilerSupportVersion() {
- return ONEAPI_MAKE_VERSION(0, 0);
+ return ONEAPI_MAKE_VERSION(7, 23);
}
static std::string toString(const ValueType& val) {
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
index 658391d873f..0e17eab3c58 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
@@ -35,6 +35,10 @@ struct PERFORMANCE_HINT final : OptionBase<PERFORMANCE_HINT, ov::hint::Performan
return ov::PropertyMutability::RW;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -116,6 +120,10 @@ struct PERFORMANCE_HINT_NUM_REQUESTS final : OptionBase<PERFORMANCE_HINT_NUM_REQ
return ov::PropertyMutability::RW;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -182,6 +190,10 @@ struct PERF_COUNT final : OptionBase<PERF_COUNT, bool> {
return ov::PropertyMutability::RW;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -200,6 +212,10 @@ struct LOG_LEVEL final : OptionBase<LOG_LEVEL, ov::log::Level> {
return "OV_NPU_LOG_LEVEL";
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -236,6 +252,10 @@ struct PLATFORM final : OptionBase<PLATFORM, std::string> {
return false;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -262,6 +282,10 @@ struct DEVICE_ID final : OptionBase<DEVICE_ID, std::string> {
return ov::PropertyMutability::RW;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -314,10 +338,6 @@ struct CACHE_MODE final : OptionBase<CACHE_MODE, ov::CacheMode> {
return OptionMode::CompileTime;
}
- static uint32_t compilerSupportVersion() {
- return ONEAPI_MAKE_VERSION(7, 23);
- }
-
static ov::CacheMode parse(std::string_view val) {
std::istringstream stringStream = std::istringstream(std::string(val));
ov::CacheMode cacheMode;
@@ -413,6 +433,10 @@ struct INTERNAL_SUPPORTED_PROPERTIES final : OptionBase<INTERNAL_SUPPORTED_PROPE
return false;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::Both;
}
@@ -871,6 +895,10 @@ struct COMPILATION_MODE final : OptionBase<COMPILATION_MODE, std::string> {
return "";
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -929,6 +957,10 @@ struct DYNAMIC_SHAPE_TO_STATIC final : OptionBase<DYNAMIC_SHAPE_TO_STATIC, bool>
return false;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -951,6 +983,10 @@ struct COMPILATION_MODE_PARAMS final : OptionBase<COMPILATION_MODE_PARAMS, std::
return {};
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -1073,6 +1109,10 @@ struct DMA_ENGINES final : OptionBase<DMA_ENGINES, int64_t> {
return -1;
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -1101,6 +1141,10 @@ struct BACKEND_COMPILATION_PARAMS final : OptionBase<BACKEND_COMPILATION_PARAMS,
return {};
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -1129,6 +1173,10 @@ struct COMPILATION_NUM_THREADS final : OptionBase<COMPILATION_NUM_THREADS, int32
}
}
+ static uint32_t compilerSupportVersion() {
+ return ONEAPI_MAKE_VERSION(0, 0);
+ }
+
static OptionMode mode() {
return OptionMode::CompileTime;
}
@@ -1242,10 +1290,6 @@ struct QDQ_OPTIMIZATION_AGGRESSIVE final : OptionBase<QDQ_OPTIMIZATION_AGGRESSIV
static bool isPublic() {
return true;
}
-
- static uint32_t compilerSupportVersion() {
- return ONEAPI_MAKE_VERSION(7, 25);
- }
};
struct DISABLE_VERSION_CHECK final : OptionBase<DISABLE_VERSION_CHECK, bool> {
@@ -1337,10 +1381,6 @@ struct WEIGHTLESS_BLOB final : OptionBase<WEIGHTLESS_BLOB, bool> {
static OptionMode mode() {
return OptionMode::CompileTime;
}
-
- static uint32_t compilerSupportVersion() {
- return ONEAPI_MAKE_VERSION(7, 23);
- }
};
struct SEPARATE_WEIGHTS_VERSION final : OptionBase<SEPARATE_WEIGHTS_VERSION, ov::intel_npu::WSVersion> {