Browse Source

Merge pull request #5249 from scottt/fix-build-on-intel-arrow-lake

cpuid_x86: improve Intel Arrow Lake detection
tags/v0.3.30
Martin Kroeker GitHub 5 months ago
parent
commit
0ea9205a6c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      cpuid_x86.c

+ 17
- 0
cpuid_x86.c View File

@@ -1578,6 +1578,7 @@ int get_cpuname(void){
case 12: //family 6 exmodel 12
switch (model) {
case 15:
case 6: // Arrow Lake
if(support_avx512())
return CPUTYPE_SAPPHIRERAPIDS;
if(support_avx2())
@@ -2421,6 +2422,22 @@ int get_coretype(void){
else
return CORE_NEHALEM;
}
case 12:
switch (model) {
case 6: // Arrow Lake
if(support_amx_bf16())
return CORE_SAPPHIRERAPIDS;
if(support_avx512_bf16())
return CORE_COOPERLAKE;
if(support_avx512())
return CORE_SKYLAKEX;
if(support_avx2())
return CORE_HASWELL;
if(support_avx())
return CORE_SANDYBRIDGE;
else
return CORE_NEHALEM;
}
}
case 15:
if (model <= 0x2) return CORE_NORTHWOOD;


Loading…
Cancel
Save