From 7a1d89bbb405c87c212daa5e9610e627b5b5258b 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/plugins/intel_cpu/src/config.cpp | 3 --- src/plugins/intel_cpu/src/config.h | 2 -- src/plugins/intel_cpu/src/plugin.cpp | 1 - 3 files changed, 6 deletions(-) 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()),