Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] Disable onednn pool in some cases due to the bug (#27115)

Vladimir Paramuzov34398738424a
diff --git a/src/plugins/intel_gpu/src/graph/impls/onednn/pooling_onednn.hpp b/src/plugins/intel_gpu/src/graph/impls/onednn/pooling_onednn.hpp
index 26cecbb659e..343fe66771d 100644
--- a/src/plugins/intel_gpu/src/graph/impls/onednn/pooling_onednn.hpp
+++ b/src/plugins/intel_gpu/src/graph/impls/onednn/pooling_onednn.hpp
@@ -14,7 +14,7 @@ namespace onednn {
struct PoolingImplementationManager : public ImplementationManager {
OV_GPU_PRIMITIVE_IMPL("onednn::pool")
- PoolingImplementationManager(shape_types shape_type) : ImplementationManager(impl_types::onednn, shape_type) {}
+ PoolingImplementationManager(shape_types shape_type, ValidateFunc vf = nullptr) : ImplementationManager(impl_types::onednn, shape_type, vf) {}
std::unique_ptr<primitive_impl> create_impl(const program_node& node, const kernel_impl_params& params) const override;
bool validate_impl(const program_node& node) const override {
diff --git a/src/plugins/intel_gpu/src/graph/impls/registry/pooling_impls.cpp b/src/plugins/intel_gpu/src/graph/impls/registry/pooling_impls.cpp
index 191edc050cd..9958404b14b 100644
--- a/src/plugins/intel_gpu/src/graph/impls/registry/pooling_impls.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/registry/pooling_impls.cpp
@@ -17,7 +17,18 @@ using namespace cldnn;
const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<pooling>::get_implementations() {
static const std::vector<std::shared_ptr<ImplementationManager>> impls = {
- OV_GPU_CREATE_INSTANCE_ONEDNN(onednn::PoolingImplementationManager, shape_types::static_shape)
+ OV_GPU_CREATE_INSTANCE_ONEDNN(onednn::PoolingImplementationManager, shape_types::static_shape, [](const program_node& node) {
+ const auto& in_layout = node.get_input_layout(0);
+ const auto& out_layout = node.get_output_layout(0);
+ // Disable this case due to sporadic hang for the following case:
+ // onednn_verbose,primitive,exec,gpu:0,pooling,jit:ir,forward_inference,src_u8::blocked:acdb::f0 dst_u8::blocked:abcd::f0
+ // ws_undef::undef:::,attr-scratchpad:user attr-post-ops:eltwise_linear:1.52456,alg:pooling_avg_include_padding,
+ // mb1ic96_ih56oh28kh2sh2dh0ph0_iw56ow28kw2sw2dw0pw0,0.0400391
+ // issue: 12579
+ if (in_layout.format == format::byxf && out_layout.format == format::bfyx && ov::element::Type(in_layout.data_type).is_integral_number())
+ return false;
+ return true;
+ })
OV_GPU_GET_INSTANCE_OCL(pooling, shape_types::static_shape)
};