Skip to content

Commit 6bec542

Browse files
authoredJan 29, 2025
Swapped to another check for NPU on system (openvinotoolkit#28730)
### Details: - *Switched to use of `get_core()->get_property("NPU", ov::available_devices)`* - *...* ### Tickets: - *CVS-161330*
1 parent d64c8d4 commit 6bec542

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)