Browse Source

Merge pull request #3527 from martin-frbg/issue3490

Treat AVX512-enabled Alder Lake like Cooper Lake/Sapphire Rapids
tags/v0.3.20
Martin Kroeker GitHub 3 years ago
parent
commit
92d243fee3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions
  1. +4
    -0
      cpuid_x86.c
  2. +4
    -1
      driver/others/dynamic.c

+ 4
- 0
cpuid_x86.c View File

@@ -1495,6 +1495,10 @@ int get_cpuname(void){
switch (model) {
case 7: // Alder Lake desktop
case 10: // Alder Lake mobile
if(support_avx512_bf16())
return CPUTYPE_COOPERLAKE;
if(support_avx512())
return CPUTYPE_SKYLAKEX;
if(support_avx2())
return CPUTYPE_HASWELL;
if(support_avx())


+ 4
- 1
driver/others/dynamic.c View File

@@ -708,8 +708,11 @@ static gotoblas_t *get_coretype(void){
case 9:
if (model == 7 || model == 10) { // Alder Lake
if(support_avx512_bf16())
return &gotoblas_COOPERLAKE;
if (support_avx512())
return &gotoblas_SKYLAKEX;
if(support_avx2()){
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
return &gotoblas_HASWELL;
}
if(support_avx()) {


Loading…
Cancel
Save