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 7a1d89b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
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 7a1d89b

Please sign in to comment.