Skip to content

Commit 92d243f

Browse files
authored
Merge pull request #3527 from martin-frbg/issue3490
Treat AVX512-enabled Alder Lake like Cooper Lake/Sapphire Rapids
2 parents 7656aba + fa3e9f2 commit 92d243f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cpuid_x86.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,10 @@ int get_cpuname(void){
14951495
switch (model) {
14961496
case 7: // Alder Lake desktop
14971497
case 10: // Alder Lake mobile
1498+
if(support_avx512_bf16())
1499+
return CPUTYPE_COOPERLAKE;
1500+
if(support_avx512())
1501+
return CPUTYPE_SKYLAKEX;
14981502
if(support_avx2())
14991503
return CPUTYPE_HASWELL;
15001504
if(support_avx())

driver/others/dynamic.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,11 @@ static gotoblas_t *get_coretype(void){
708708

709709
case 9:
710710
if (model == 7 || model == 10) { // Alder Lake
711+
if(support_avx512_bf16())
712+
return &gotoblas_COOPERLAKE;
713+
if (support_avx512())
714+
return &gotoblas_SKYLAKEX;
711715
if(support_avx2()){
712-
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
713716
return &gotoblas_HASWELL;
714717
}
715718
if(support_avx()) {

0 commit comments

Comments
 (0)