We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95ed812 + 778e3b7 commit cad10a3Copy full SHA for cad10a3
1 file changed
cpuid_x86.c
@@ -1660,7 +1660,13 @@ int get_cpuname(void){
1660
else
1661
return CPUTYPE_BARCELONA;
1662
}
1663
- case 10: // Zen3
+ 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
1670
if(support_avx())
1671
#ifndef NO_AVX2
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
2448
2449
+ return CORE_COOPERLAKE;
2450
2451
+ return CORE_SKYLAKEX;
2452
2441
2453
2442
2454
2443
2455
return CORE_ZEN;
0 commit comments