@@ -774,7 +774,7 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::compile_model(const std::shared_ptr<
774
774
// will consume ov::cache_dir if plugin not support it
775
775
auto cacheManager = parsed._core_config .get_cache_config_for_device (plugin, parsed._config )._cacheManager ;
776
776
// Skip caching for proxy plugin. HW plugin will load network from the cache
777
- if (cacheManager && device_supports_model_caching (plugin) && !is_proxy_device (plugin)) {
777
+ if (cacheManager && device_supports_model_caching (plugin, parsed. _config ) && !is_proxy_device (plugin)) {
778
778
CacheContent cacheContent{cacheManager, parsed._core_config .get_enable_mmap ()};
779
779
cacheContent.blobId = ov::ModelCache::compute_hash (model, create_compile_config (plugin, parsed._config ));
780
780
std::unique_ptr<CacheGuardEntry> lock = cacheGuard.get_hash_lock (cacheContent.blobId );
@@ -808,7 +808,7 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::compile_model(const std::shared_ptr<
808
808
// will consume ov::cache_dir if plugin not support it
809
809
auto cacheManager = parsed._core_config .get_cache_config_for_device (plugin, parsed._config )._cacheManager ;
810
810
// Skip caching for proxy plugin. HW plugin will load network from the cache
811
- if (cacheManager && device_supports_model_caching (plugin) && !is_proxy_device (plugin)) {
811
+ if (cacheManager && device_supports_model_caching (plugin, parsed. _config ) && !is_proxy_device (plugin)) {
812
812
CacheContent cacheContent{cacheManager, parsed._core_config .get_enable_mmap ()};
813
813
cacheContent.blobId = ov::ModelCache::compute_hash (model, create_compile_config (plugin, parsed._config ));
814
814
std::unique_ptr<CacheGuardEntry> lock = cacheGuard.get_hash_lock (cacheContent.blobId );
@@ -832,7 +832,7 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::compile_model(const std::string& mod
832
832
// will consume ov::cache_dir if plugin not support it
833
833
auto cacheManager = parsed._core_config .get_cache_config_for_device (plugin, parsed._config )._cacheManager ;
834
834
835
- if (cacheManager && device_supports_model_caching (plugin) && !is_proxy_device (plugin)) {
835
+ if (cacheManager && device_supports_model_caching (plugin, parsed. _config ) && !is_proxy_device (plugin)) {
836
836
// Skip caching for proxy plugin. HW plugin will load network from the cache
837
837
CoreConfig::remove_core_skip_cache_dir (parsed._config );
838
838
CacheContent cacheContent{cacheManager, parsed._core_config .get_enable_mmap (), model_path};
@@ -860,7 +860,7 @@ ov::SoPtr<ov::ICompiledModel> ov::CoreImpl::compile_model(const std::string& mod
860
860
// will consume ov::cache_dir if plugin not support it
861
861
auto cacheManager = parsed._core_config .get_cache_config_for_device (plugin, parsed._config )._cacheManager ;
862
862
// Skip caching for proxy plugin. HW plugin will load network from the cache
863
- if (cacheManager && device_supports_model_caching (plugin) && !is_proxy_device (plugin)) {
863
+ if (cacheManager && device_supports_model_caching (plugin, parsed. _config ) && !is_proxy_device (plugin)) {
864
864
CacheContent cacheContent{cacheManager, parsed._core_config .get_enable_mmap ()};
865
865
cacheContent.blobId =
866
866
ov::ModelCache::compute_hash (model_str, weights, create_compile_config (plugin, parsed._config ));
@@ -1378,8 +1378,8 @@ bool ov::CoreImpl::device_supports_internal_property(const ov::Plugin& plugin, c
1378
1378
return util::contains (plugin.get_property (ov::internal::supported_properties), key);
1379
1379
}
1380
1380
1381
- bool ov::CoreImpl::device_supports_model_caching (const ov::Plugin& plugin) const {
1382
- return plugin.supports_model_caching ();
1381
+ bool ov::CoreImpl::device_supports_model_caching (const ov::Plugin& plugin, const ov::AnyMap& arguments ) const {
1382
+ return plugin.supports_model_caching (arguments );
1383
1383
}
1384
1384
1385
1385
bool ov::CoreImpl::device_supports_cache_dir (const ov::Plugin& plugin) const {
0 commit comments