Skip to content

Commit

Permalink
Swapped to another check for NPU on system (#28730)
Browse files Browse the repository at this point in the history
### Details:
- *Switched to use of `get_core()->get_property("NPU",
ov::available_devices)`*
 - *...*

### Tickets:
 - *CVS-161330*
  • Loading branch information
AsyaPronina authored Jan 29, 2025
1 parent d64c8d4 commit 6bec542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ struct NPUDesc {
};

std::optional<NPUDesc> extract_npu_descriptor(const std::shared_ptr<const ov::IPlugin>& 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;
}

Expand Down

0 comments on commit 6bec542

Please sign in to comment.