Skip to content

Commit

Permalink
Removed cache_dirhandling from CPU plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Mar 7, 2023
1 parent 4cea809 commit e5e96a9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/bindings/python/tests/test_runtime/test_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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,
Expand All @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/intel_cpu/src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ void Config::readProperties(const std::map<std::string, std::string> &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 {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/plugins/intel_cpu/src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ struct Config {
bool manualEnforceBF16 = false;
#endif

std::string cache_dir{};

DenormalsOptMode denormalsOptMode = DenormalsOptMode::DO_Keep;

void readProperties(const std::map<std::string, std::string> &config);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/intel_cpu/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ Parameter Engine::GetMetric(const std::string& name, const std::map<std::string,
RO_property(ov::device::full_name.name()),
RO_property(ov::device::capabilities.name()),
RO_property(ov::caching_properties.name()),
RO_property(ov::cache_dir.name()) // WA Can be removed after implementing snippet serialization.
};
// the whole config is RW before network is loaded.
std::vector<ov::PropertyName> rwProperties {RW_property(ov::num_streams.name()),
Expand Down

0 comments on commit e5e96a9

Please sign in to comment.