Skip to content

Commit 1f68be9

Browse files
Mirror: Swapped to another check for NPU on system (#28734)
Mirror of #28730 Work-arounds CVS-161330 Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
1 parent 6a63492 commit 1f68be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ struct NPUDesc {
303303
};
304304

305305
std::optional<NPUDesc> extract_npu_descriptor(const std::shared_ptr<const ov::IPlugin>& plugin) {
306-
const auto all_devices = plugin->get_core()->get_available_devices();
307-
if (std::find(all_devices.begin(), all_devices.end(), "NPU") == all_devices.end()) {
306+
const auto all_devices = plugin->get_core()->get_property("NPU", ov::available_devices);
307+
if (all_devices.empty()) {
308308
return std::nullopt;
309309
}
310310

0 commit comments

Comments
 (0)