From 1f68be9f5945f2a239ada580e62c992d820f9cb7 Mon Sep 17 00:00:00 2001 From: Alexey Smirnov Date: Thu, 30 Jan 2025 13:31:48 +0000 Subject: [PATCH] Mirror: Swapped to another check for NPU on system (#28734) Mirror of https://github.com/openvinotoolkit/openvino/pull/28730 Work-arounds CVS-161330 Co-authored-by: Dmitry Matveev --- src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp index 6e3cb68e2f1ad2..e2f264256f3d55 100644 --- a/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp +++ b/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp @@ -303,8 +303,8 @@ struct NPUDesc { }; std::optional extract_npu_descriptor(const std::shared_ptr& plugin) { - const auto all_devices = plugin->get_core()->get_available_devices(); - if (std::find(all_devices.begin(), all_devices.end(), "NPU") == all_devices.end()) { + const auto all_devices = plugin->get_core()->get_property("NPU", ov::available_devices); + if (all_devices.empty()) { return std::nullopt; }