Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPUW][AUTO] Fix CACHE_DIR for NPUW (#29382)

Alexey Smirnov1853e3b835de
diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cpp
index 2b05e70ba8a..a3d3f1248bf 100644
--- a/src/inference/src/dev/core_impl.cpp
+++ b/src/inference/src/dev/core_impl.cpp
@@ -1381,7 +1381,11 @@ bool ov::CoreImpl::device_supports_internal_property(const ov::Plugin& plugin, c
}
bool ov::CoreImpl::device_supports_model_caching(const ov::Plugin& plugin, const ov::AnyMap& arguments) const {
- return plugin.supports_model_caching(arguments);
+ ov::AnyMap properties;
+ if (arguments.count(ov::device::priorities.name())) {
+ properties[ov::device::priorities.name()] = arguments.at(ov::device::priorities.name()).as<std::string>();
+ }
+ return plugin.supports_model_caching(properties);
}
bool ov::CoreImpl::device_supports_cache_dir(const ov::Plugin& plugin) const {