Skip to content

Commit 7f79a7e

Browse files
ggojskaigcbot
authored andcommitted
Change get_coord formula
Change get_coord formula to return coord in original matrix rather than VNNIed
1 parent 0a9010b commit 7f79a7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/BiFModule/Languages/OpenCL/PreRelease/IBiF_matrix.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,8 +1013,8 @@ The storage in memory will be: 0 0 1 1 2 2 ... 7 7
10131013
int pack_factor = contrib_bitwidth / elem_bitwidth; \
10141014
int sg_cols = (C*VF) / pack_factor; \
10151015
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; \
1016+
int row = ((wi_id*pack_factor)/(C*VF) + index/pack_factor*skip_factor)* VF; \
1017+
int col = ((wi_id * pack_factor) % (C*VF) + index % pack_factor)/ VF; \
10181018
int2 result = (int2)(row, col); \
10191019
return result; \
10201020
}

0 commit comments

Comments
 (0)