File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1436,6 +1436,15 @@ int get_cpuname(void){
1436
1436
return CPUTYPE_SANDYBRIDGE ;
1437
1437
else
1438
1438
return CPUTYPE_NEHALEM ;
1439
+ case 7 : // Rocket Lake
1440
+ if (support_avx512 ())
1441
+ return CPUTYPE_SKYLAKEX ;
1442
+ if (support_avx2 ())
1443
+ return CPUTYPE_HASWELL ;
1444
+ if (support_avx ())
1445
+ return CPUTYPE_SANDYBRIDGE ;
1446
+ else
1447
+ return CPUTYPE_NEHALEM ;
1439
1448
}
1440
1449
break ;
1441
1450
}
@@ -2014,6 +2023,19 @@ int get_coretype(void){
2014
2023
#endif
2015
2024
else
2016
2025
return CORE_NEHALEM ;
2026
+ case 7 :// Rocket Lake
2027
+ #ifndef NO_AVX512
2028
+ if (support_avx512 ())
2029
+ return CORE_SKYLAKEX ;
2030
+ #endif
2031
+ #ifndef NO_AVX2
2032
+ if (support_avx2 ())
2033
+ return CORE_HASWELL ;
2034
+ #endif
2035
+ if (support_avx ())
2036
+ return CORE_SANDYBRIDGE ;
2037
+ else
2038
+ return CORE_NEHALEM ;
2017
2039
}
2018
2040
case 5 :
2019
2041
switch (model ) {
You can’t perform that action at this time.
0 commit comments