Skip to content

Commit

Permalink
Mirror: Swapped to another check for NPU on system (#28734)
Browse files Browse the repository at this point in the history
Mirror of #28730
Work-arounds CVS-161330

Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
  • Loading branch information
smirnov-alexey and dmatveev authored Jan 30, 2025
1 parent 6a63492 commit 1f68be9
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 1f68be9

Please sign in to comment.