Browse Source

Add cpu detection support for comet lake U

Comet Lake U CPUs have family: 6, model: 6, extended family: 0, and
extended model: 10 were not being correctly detected by GETARCH during
openblas builds and would show CORE=UNKNOWN and LIBCORE=unknown. This
commit adds the necessary information to cpuid_x86 to detect extended
family 10 model 6 and return the proper core information. It's
essentially just a skylake cpu, not skylake x, so I just took the used
the same return fields as skylake.
tags/v0.3.11^2
Matthew Treinish 5 years ago
parent
commit
2a91452bdd
No known key found for this signature in database GPG Key ID: FD12A0F214C9E177
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      cpuid_x86.c

+ 13
- 0
cpuid_x86.c View File

@@ -1955,6 +1955,19 @@ int get_coretype(void){
return CORE_NEHALEM;
}
break;
case 10:
switch (model) {
case 6:
// Comet Lake U
if(support_avx())
#ifndef NO_AVX2
return CORE_HASWELL;
#else
return CORE_SANDYBRIDGE;
#endif
else
return CORE_NEHALEM;
}
case 5:
switch (model) {
case 6:


Loading…
Cancel
Save