mirror of
https://github.com/amd/blis.git
synced 2026-04-20 07:38:53 +00:00
Fix: Resolve Operator Precedence Warning in Zen5 DCOMPLEX Threshold Logic
- Add explicit parentheses around (n <= 1520) && (k <= 128) to clarify operator precedence and resolve compiler warning. The intended logic is (m <= 1380) OR (n <= 1520 AND k <= 128). - This change eliminates the compiler warning about mixing || and && operators without explicit grouping.
This commit is contained in:
@@ -87,7 +87,7 @@ bool bli_cntx_gemmsup_thresh_is_met_zen5( obj_t* a, obj_t* b, obj_t* c, cntx_t*
|
||||
// The threshold for m is a single value, but for n, it is
|
||||
// also based on the packing size of A, since the kernels are
|
||||
// column preferential
|
||||
if ( ( ( m <= 1380 ) || ( n <= 1520 ) && ( k <= 128 ) ) && ( m + n + k < 6400 ) ) return TRUE;
|
||||
if ( ( ( m <= 1380 ) || ( ( n <= 1520 ) && ( k <= 128 ) ) ) && ( m + n + k < 6400 ) ) return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user