[GPU] bugfix: partial subgroup issue (#14845)

Behavior is undefined if the subgroup size is smaller than
the maximum subgroup size; in other words, if this is a partial subgroup.
This commit is contained in:
Sungeun Kim 2023-01-17 16:05:01 +09:00 committed by GitHub
parent ef0bc2b406
commit 8ab2e0e8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,8 +231,6 @@ KERNEL (resample_opt)(__global INPUT0_TYPE* input,
typedef IN_VEC_TYPE in_vec_t; typedef IN_VEC_TYPE in_vec_t;
typedef ACC_VEC_TYPE acc_vec_t; typedef ACC_VEC_TYPE acc_vec_t;
if (feature_num >= OUTPUT_FEATURE_NUM)
return;
#ifdef SAMPLE_TYPE_NEAREST #ifdef SAMPLE_TYPE_NEAREST
unroll_for (uint out_x = 0; out_x < OUTPUT_X_BLOCK_SIZE; out_x++) { unroll_for (uint out_x = 0; out_x < OUTPUT_X_BLOCK_SIZE; out_x++) {