Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed cache_dir handling from CPU plugin #16132

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ def test_core_cpu_properties(properties_to_set):

# RW properties
assert core.get_property("CPU", properties.enable_profiling()) is True
assert core.get_property("CPU", properties.cache_dir()) == "./"
assert core.get_property("CPU", properties.inference_num_threads()) == 9
assert core.get_property("CPU", properties.affinity()) == properties.Affinity.NONE
assert core.get_property("CPU", properties.streams.num()) == 5
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