We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9010b commit 7f79a7eCopy full SHA for 7f79a7e
IGC/BiFModule/Languages/OpenCL/PreRelease/IBiF_matrix.cl
@@ -1013,8 +1013,8 @@ The storage in memory will be: 0 0 1 1 2 2 ... 7 7
1013
int pack_factor = contrib_bitwidth / elem_bitwidth; \
1014
int sg_cols = (C*VF) / pack_factor; \
1015
int skip_factor = sg_size / sg_cols; \
1016
- int row = (wi_id*pack_factor)/(C*VF) + index/pack_factor*skip_factor; \
1017
- int col = (wi_id * pack_factor) % (C*VF) + index % pack_factor; \
+ int row = ((wi_id*pack_factor)/(C*VF) + index/pack_factor*skip_factor)* VF; \
+ int col = ((wi_id * pack_factor) % (C*VF) + index % pack_factor)/ VF; \
1018
int2 result = (int2)(row, col); \
1019
return result; \
1020
}
0 commit comments