File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1660,7 +1660,13 @@ int get_cpuname(void){
1660
1660
else
1661
1661
return CPUTYPE_BARCELONA ;
1662
1662
}
1663
- case 10 : // Zen3
1663
+ case 10 : // Zen3/4
1664
+ #ifndef NO_AVX512
1665
+ if (support_avx512_bf16 ())
1666
+ return CPUTYPE_COOPERLAKE ;
1667
+ if (support_avx512 ())
1668
+ return CPUTYPE_SKYLAKEX ;
1669
+ #endif
1664
1670
if (support_avx ())
1665
1671
#ifndef NO_AVX2
1666
1672
return CPUTYPE_ZEN ;
@@ -2438,6 +2444,12 @@ int get_coretype(void){
2438
2444
// Ryzen 2
2439
2445
default :
2440
2446
// Matisse,Renoir Ryzen2 models
2447
+ #ifndef NO_AVX512
2448
+ if (support_avx512_bf16 ())
2449
+ return CORE_COOPERLAKE ;
2450
+ if (support_avx512 ())
2451
+ return CORE_SKYLAKEX ;
2452
+ #endif
2441
2453
if (support_avx ())
2442
2454
#ifndef NO_AVX2
2443
2455
return CORE_ZEN ;
You can’t perform that action at this time.
0 commit comments