Skip to content

Commit

Permalink
Update oneDNN submodule and remove cache cleanup WA
Browse files Browse the repository at this point in the history
  • Loading branch information
sshlyapn committed Mar 20, 2024
1 parent 039d0bf commit 9309d8d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion src/plugins/intel_gpu/include/intel_gpu/plugin/plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class Plugin : public ov::IPlugin {

public:
Plugin();
~Plugin();

std::shared_ptr<ov::ICompiledModel> compile_model(const std::shared_ptr<const ov::Model>& model,
const ov::AnyMap& properties) const override;
Expand Down
15 changes: 0 additions & 15 deletions src/plugins/intel_gpu/src/plugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,6 @@ Plugin::Plugin() {
m_compiled_model_runtime_properties["OV_VERSION"] = ov_version.buildNumber;
}

Plugin::~Plugin() {
#ifdef ENABLE_ONEDNN_FOR_GPU
// To prevent hanging during oneDNN's primitive cache desctruction,
// trigger earlier cache cleanup by setting its capacity to 0.
// Related ticket: 106154.
dnnl::set_primitive_cache_capacity(0);

// In case of multiple ov::Core instances (and multiple GPU plugins) we need to restore original
// cache capacity to prevent working with zero-capacity cache in other GPU Plugin instances, since
// cache is shared between all of GPU Plugin instances and cache clean up affects all of them.
const int default_cache_capacity = 1024;
dnnl::set_primitive_cache_capacity(default_cache_capacity);
#endif
}

std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<const ov::Model>& model, const ov::AnyMap& orig_config) const {
OV_ITT_SCOPED_TASK(itt::domains::intel_gpu_plugin, "Plugin::compile_model");
std::string device_id = get_device_id(orig_config);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/thirdparty/onednn_gpu
Submodule onednn_gpu updated 161 files

0 comments on commit 9309d8d

Please sign in to comment.