From e5e96a925e16a7483b1bb4f31a6d666dfd3d7676 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 7 Mar 2023 17:55:31 +0800 Subject: [PATCH] Removed cache_dirhandling from CPU plugin --- src/bindings/python/tests/test_runtime/test_properties.py | 3 --- src/plugins/intel_cpu/src/config.cpp | 3 --- src/plugins/intel_cpu/src/config.h | 2 -- src/plugins/intel_cpu/src/plugin.cpp | 1 - 4 files changed, 9 deletions(-) diff --git a/src/bindings/python/tests/test_runtime/test_properties.py b/src/bindings/python/tests/test_runtime/test_properties.py index 46b6184437deba..dfced871b6b252 100644 --- a/src/bindings/python/tests/test_runtime/test_properties.py +++ b/src/bindings/python/tests/test_runtime/test_properties.py @@ -370,7 +370,6 @@ def test_single_property_setting(device): dict( # noqa: C406 [ # noqa: C406 properties.enable_profiling(True), - properties.cache_dir("./"), properties.inference_num_threads(9), properties.affinity(properties.Affinity.NONE), properties.inference_precision(Type.f32), @@ -382,7 +381,6 @@ def test_single_property_setting(device): # Pure dict { properties.enable_profiling(): True, - properties.cache_dir(): "./", properties.inference_num_threads(): 9, properties.affinity(): properties.Affinity.NONE, properties.inference_precision(): Type.f32, @@ -393,7 +391,6 @@ def test_single_property_setting(device): # Mixed dict { properties.enable_profiling(): True, - "CACHE_DIR": "./", properties.inference_num_threads(): 9, properties.affinity(): "NONE", "INFERENCE_PRECISION_HINT": Type.f32, diff --git a/src/plugins/intel_cpu/src/config.cpp b/src/plugins/intel_cpu/src/config.cpp index e11ca103be80c4..071a9be9ba8175 100644 --- a/src/plugins/intel_cpu/src/config.cpp +++ b/src/plugins/intel_cpu/src/config.cpp @@ -165,8 +165,6 @@ void Config::readProperties(const std::map &prop) { IE_THROW() << "Wrong value for property key " << ov::inference_precision.name() << ". Supported values: bf16, f32"; } - } else if (key == PluginConfigParams::KEY_CACHE_DIR) { - cache_dir = val; } else if (PluginConfigInternalParams::KEY_CPU_RUNTIME_CACHE_CAPACITY == key) { int val_i = -1; try { @@ -261,7 +259,6 @@ void Config::updateProperties() { _config.insert({ PluginConfigParams::KEY_PERFORMANCE_HINT, perfHintsConfig.ovPerfHint }); _config.insert({ PluginConfigParams::KEY_PERFORMANCE_HINT_NUM_REQUESTS, std::to_string(perfHintsConfig.ovPerfHintNumRequests) }); - _config.insert({PluginConfigParams::KEY_CACHE_DIR, cache_dir}); } } // namespace intel_cpu diff --git a/src/plugins/intel_cpu/src/config.h b/src/plugins/intel_cpu/src/config.h index 012fd0fd9f0bc8..efd3c47a1b8ca1 100644 --- a/src/plugins/intel_cpu/src/config.h +++ b/src/plugins/intel_cpu/src/config.h @@ -59,8 +59,6 @@ struct Config { bool manualEnforceBF16 = false; #endif - std::string cache_dir{}; - DenormalsOptMode denormalsOptMode = DenormalsOptMode::DO_Keep; void readProperties(const std::map &config); diff --git a/src/plugins/intel_cpu/src/plugin.cpp b/src/plugins/intel_cpu/src/plugin.cpp index 159134fbdb8ffe..b93b6704c55975 100644 --- a/src/plugins/intel_cpu/src/plugin.cpp +++ b/src/plugins/intel_cpu/src/plugin.cpp @@ -587,7 +587,6 @@ Parameter Engine::GetMetric(const std::string& name, const std::map rwProperties {RW_property(ov::num_streams.name()),