Recognize Intel Tiger Lake as SkylakeX

This commit is contained in:
Martin Kroeker 2021-02-11 20:16:27 +01:00 committed by GitHub
parent 8189a98d85
commit ae53e3e233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -1418,6 +1418,15 @@ int get_cpuname(void){
case 9: case 9:
case 8: case 8:
switch (model) { switch (model) {
case 12: // Tiger Lake
if(support_avx512())
return CPUTYPE_SKYLAKEX;
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
case 14: // Kaby Lake and refreshes case 14: // Kaby Lake and refreshes
if(support_avx2()) if(support_avx2())
return CPUTYPE_HASWELL; return CPUTYPE_HASWELL;
@ -2124,6 +2133,16 @@ int get_coretype(void){
break; break;
case 9: case 9:
case 8: case 8:
if (model == 12) { // Tiger Lake
if(support_avx512())
return CPUTYPE_SKYLAKEX;
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())
return CPUTYPE_SANDYBRIDGE;
else
return CPUTYPE_NEHALEM;
}
if (model == 14) { // Kaby Lake if (model == 14) { // Kaby Lake
if(support_avx()) if(support_avx())
#ifndef NO_AVX2 #ifndef NO_AVX2