Skip to content

Commit 62d4fcb

Browse files
committed
Bugfix: Group Size Validation for s8s8s32o32_sym_quant
- Fixed the group size validation logic to correctly check if the group_size is a multiple of 4. - Previously the condition was incorrectly performing bitwise AND with decimal 11 instead of binary 11 (decimal 3). AMD-Internal: [CPUPL-6754]
1 parent 9b7e110 commit 62d4fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/aocl_gemm/aocl_gemm_s8s8s32os32_utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ AOCL_GEMM_GET_REORDER_BUF_SIZE_SYM_QUANT(s8s8s32os32_sym_quant)
169169
#endif
170170
dim_t group_size = meta_data->group_size;
171171

172-
if( group_size & 11 )
172+
if( group_size & 3 )
173173
{
174174
bli_print_msg(" Group size should be multiple of 4 for s8s8s32os32_sym_quant", __FILE__, __LINE__ );
175175
return 0; // Error.
@@ -345,7 +345,7 @@ AOCL_GEMM_REORDER_SYM_QUANT(int8_t,s8s8s32os32_sym_quant)
345345
}
346346

347347
dim_t group_size = meta_data->group_size;
348-
if( group_size & 11 )
348+
if( group_size & 3 )
349349
{
350350
bli_print_msg(" Group size should be multiple of 4 for s8s8s32os32_sym_quant", __FILE__, __LINE__ );
351351
return; // Error.

0 commit comments

Comments
 (0)