From 80df9f9948d719eabd9fde34b1ecc23a27c2be67 Mon Sep 17 00:00:00 2001 From: "Durandin, Pavel" Date: Mon, 21 Oct 2024 10:23:57 +0400 Subject: [PATCH] [GPU] Fix oneDnn cache leak --- src/plugins/intel_gpu/src/plugin/plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/intel_gpu/src/plugin/plugin.cpp b/src/plugins/intel_gpu/src/plugin/plugin.cpp index fecc7eef3baa7e..b0d53aa652ff2a 100644 --- a/src/plugins/intel_gpu/src/plugin/plugin.cpp +++ b/src/plugins/intel_gpu/src/plugin/plugin.cpp @@ -160,12 +160,13 @@ Plugin::Plugin() { // Set common info for compiled_model_runtime_properties auto& ov_version = ov::get_openvino_version(); m_compiled_model_runtime_properties["OV_VERSION"] = ov_version.buildNumber; - + std::cout << "DEBUG: gpu plugin init" << std::endl; } Plugin::~Plugin() { // reset oneDNN cache to clean up cached primitives #ifdef ENABLE_ONEDNN_FOR_GPU + std::cout << "DEBUG: gpu plugin destructor" << std::endl; auto capasity = dnnl::get_primitive_cache_capacity(); dnnl::set_primitive_cache_capacity(0); dnnl::set_primitive_cache_capacity(capasity);