We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b49f7ae commit 83e312fCopy full SHA for 83e312f
src/plugins/intel_gpu/src/plugin/plugin.cpp
@@ -166,6 +166,12 @@ Plugin::~Plugin() {
166
// trigger earlier cache cleanup by setting its capacity to 0.
167
// Related ticket: 106154.
168
dnnl::set_primitive_cache_capacity(0);
169
+
170
+ // In case of multiple ov::Core instances (and multiple GPU plugins) we need to restore original
171
+ // cache capacity to prevent working with zero-capacity cache in other GPU Plugin instances, since
172
+ // cache is shared between all of GPU Plugin instances and cache clean up affects all of them.
173
+ const int default_cache_capacity = 1024;
174
+ dnnl::set_primitive_cache_capacity(default_cache_capacity);
175
#endif
176
}
177
0 commit comments