OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPUW] Check different compiler version for different arch to enable Quant Gather (#31934)
Alexey Smirnov6fd3bdae1b9f
diff --git a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cppindex 0c27bc372c3..36968be077e 100644--- a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp+++ b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp@@ -565,16 +565,16 @@ bool ov::npuw::CompiledModel::should_use_quantized_host_gather(const std::shared// Check the compiler versionconst auto npu_devices = get_plugin()->get_core()->get_property("NPU", ov::available_devices);- const auto is_suitable_arch = [](const std::string& arch) {- return arch == "3720" || arch == "4000";- };- const auto is_suitable_comp = [](int64_t ver) {- return ver >= ONEAPI_MAKE_VERSION(7, 21);+ const auto is_suitable_comp = [](int64_t ver, const std::string& arch) {+ if (arch == "3720" || arch == "4000") {+ return ver >= ONEAPI_MAKE_VERSION(7, 21);+ }+ return ver >= ONEAPI_MAKE_VERSION(7, 25);};const bool compiler_version_enough =!npu_devices.empty() &&- is_suitable_arch(get_plugin()->get_core()->get_property("NPU", ov::device::architecture)) &&- is_suitable_comp(get_plugin()->get_core()->get_property("NPU", ov::intel_npu::compiler_version));+ is_suitable_comp(get_plugin()->get_core()->get_property("NPU", ov::intel_npu::compiler_version),+ get_plugin()->get_core()->get_property("NPU", ov::device::architecture));// FIXME: go from// get_plugin()->get_core()->get_property("NPU", ..// to