Skip to content

Commit

Permalink
[GPU] Fix oneDnn cache leak
Browse files Browse the repository at this point in the history
  • Loading branch information
p-durandin committed Oct 18, 2024
1 parent 9139472 commit 296838a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/intel_gpu/src/plugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Plugin::Plugin() {
// update oneDnn cache
#ifdef ENABLE_ONEDNN_FOR_GPU
#if (ENABLE_ONEDNN_FOR_GPU)
dnnl::set_primitive_cache_capacity(1024);
//dnnl::set_primitive_cache_capacity(1024);
#endif
#endif
}
Expand All @@ -174,6 +174,7 @@ Plugin::~Plugin() {
#ifdef ENABLE_ONEDNN_FOR_GPU
#if (ENABLE_ONEDNN_FOR_GPU)
dnnl::set_primitive_cache_capacity(0);
dnnl::set_primitive_cache_capacity(1024);
#endif
#endif
}
Expand Down

0 comments on commit 296838a

Please sign in to comment.