Modified DSCALV AOCL dynamic

- AOCL dynamic logic that determines the number of threads to be
  launched has been modified.

AMD-Internal: [CPUPL-3956]
Change-Id: Ia6c052515bd24e93660f020a7d0894fc75a229fc
This commit is contained in:
Harihara Sudhan S
2023-10-30 14:35:29 +05:30
committed by HariharaSudhan S
parent dd1cf23090
commit bed6bd4941

View File

@@ -1606,14 +1606,22 @@ static void aocl_dscalv_dynamic
case BLIS_ARCH_ZEN2:
case BLIS_ARCH_ZEN3:
if ( n_elem <= 10000 )
if ( n_elem <= 30000)
*nt_ideal = 1;
else if (n_elem <= 20000)
else if (n_elem <= 100000)
*nt_ideal = 2;
else if (n_elem <= 50000)
*nt_ideal = 4;
else
else if (n_elem <= 500000)
*nt_ideal = 8;
else if (n_elem <= 4000000)
*nt_ideal = 12;
else if (n_elem <= 2500000)
*nt_ideal = 16;
else if(n_elem <= 7000000)
*nt_ideal = 24;
else if(n_elem <= 10000000)
*nt_ideal = 32;
else
*nt_ideal = 64;
break;