Skip to content

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

[GPU] Fix a group conv unit test fail. (#28511)

Jade Cho0aee40dc6187
diff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/convolution_gpu_imad.cl b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/convolution_gpu_imad.cl
index 0cf873f570c..cf442ee80b9 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/convolution_gpu_imad.cl
+++ b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/convolution_gpu_imad.cl
@@ -282,12 +282,6 @@ KERNEL (fused_convolution_eltwise_gpu_imad)(
out[br * OUT_BLOCK_WIDTH + bc] = TO_ACCUMULATOR_TYPE(IMAD(out[br * OUT_BLOCK_WIDTH + bc], inputs, AS_FILTER_TYPE_4(w[wi])));
- #ifdef ASYMMETRIC_WEIGHTS_QUANTIZATION
- ACCUMULATOR_TYPE dotProdAxWZP = 0;
- dotProdAxWZP = TO_ACCUMULATOR_TYPE(IMAD(dotProdAxWZP, inputs, AS_FILTER_TYPE_4(weights_zp_val)));
- out[br * OUT_BLOCK_WIDTH + bc] -= dotProdAxWZP;
- #endif
-
#if !defined COMPENSATION_TERM && defined ASYMMETRIC_DATA_QUANTIZATION
out[br * OUT_BLOCK_WIDTH + bc] -= dotProdAZPxW;
#endif
@@ -297,6 +291,12 @@ KERNEL (fused_convolution_eltwise_gpu_imad)(
defined ASYMMETRIC_WEIGHTS_QUANTIZATION)
out[br * OUT_BLOCK_WIDTH + bc] += dotProdAZPxWZP;
#endif
+
+ #ifdef ASYMMETRIC_WEIGHTS_QUANTIZATION
+ ACCUMULATOR_TYPE dotProdAxWZP = 0;
+ dotProdAxWZP = TO_ACCUMULATOR_TYPE(IMAD(dotProdAxWZP, inputs, AS_FILTER_TYPE_4(weights_zp_val)));
+ out[br * OUT_BLOCK_WIDTH + bc] -= dotProdAxWZP;
+ #endif
}
}
wi++;
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
index 30d12c490e3..bb952e860d0 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/convolution_gpu_test.cpp
@@ -7685,9 +7685,7 @@ INSTANTIATE_TEST_SUITE_P(convolution_grouped_fsv4_fsv16,
TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, false, false, false, format::b_fs_yx_fsv4, ""),
TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, false, true, false, format::b_fs_yx_fsv4, ""),
TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, true, false, false, format::b_fs_yx_fsv4, ""),
-
- // TODO: It will be fix soon, test reference is wrong in new driver.
- // TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, true, true, false, format::b_fs_yx_fsv4, ""),
+ TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, true, true, false, format::b_fs_yx_fsv4, ""),
TestParamType_grouped_convolution_gpu(3, 1, 1, 80, 252, 3, 1, 1, 4, 1, 1, true, false, true, format::b_fs_yx_fsv4, ""),
// Format: b_fs_yx_fsv16