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]
This commit is contained in:
Arnav Sharma
2025-05-27 18:07:15 +05:30
committed by Sharma, Arnav
parent 9b7e1105dc
commit 62d4fcb398

View File

@@ -169,7 +169,7 @@ AOCL_GEMM_GET_REORDER_BUF_SIZE_SYM_QUANT(s8s8s32os32_sym_quant)
#endif
dim_t group_size = meta_data->group_size;
if( group_size & 11 )
if( group_size & 3 )
{
bli_print_msg(" Group size should be multiple of 4 for s8s8s32os32_sym_quant", __FILE__, __LINE__ );
return 0; // Error.
@@ -345,7 +345,7 @@ AOCL_GEMM_REORDER_SYM_QUANT(int8_t,s8s8s32os32_sym_quant)
}
dim_t group_size = meta_data->group_size;
if( group_size & 11 )
if( group_size & 3 )
{
bli_print_msg(" Group size should be multiple of 4 for s8s8s32os32_sym_quant", __FILE__, __LINE__ );
return; // Error.