Skip to content

Commit 1291835

Browse files
authored
Add AMD Renoir/Matisse and preliminary support for Zen3 as Zen2
also support AMD family 22 Jaguar/Puma as Bobcat
1 parent 200f5c4 commit 1291835

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

driver/others/dynamic.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ static gotoblas_t *get_coretype(void){
656656
if ((exfamily == 0) || (exfamily == 2)) {
657657
if (ecx & (1 << 0)) return &gotoblas_OPTERON_SSE3;
658658
else return &gotoblas_OPTERON;
659-
} else if (exfamily == 5) {
659+
} else if (exfamily == 5 || exfamily == 7) {
660660
return &gotoblas_BOBCAT;
661661
} else if (exfamily == 6) {
662662
if(model == 1){
@@ -710,24 +710,32 @@ static gotoblas_t *get_coretype(void){
710710
}
711711
}
712712
} else if (exfamily == 8) {
713-
if (model == 1 || model == 8) {
713+
/* if (model == 1 || model == 8) */ {
714714
if(support_avx())
715715
return &gotoblas_ZEN;
716716
else{
717717
openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK);
718718
return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels.
719719
}
720720
}
721-
} else if (exfamily == 9) {
721+
} else if (exfamily == 9) {
722722
if(support_avx())
723723
return &gotoblas_ZEN;
724724
else{
725725
openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK);
726726
return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels.
727-
}
727+
}
728+
} else if (exfamily == 10) {
729+
if(support_avx())
730+
return &gotoblas_ZEN;
731+
else{
732+
openblas_warning(FALLBACK_VERBOSE, BARCELONA_FALLBACK);
733+
return &gotoblas_BARCELONA; //OS doesn't support AVX. Use old kernels.
734+
}
728735
}else {
729736
return &gotoblas_BARCELONA;
730737
}
738+
731739
}
732740
}
733741

0 commit comments

Comments
 (0)