Skip to content

Commit 504310e

Browse files
authored
Merge pull request #1665 from martin-frbg/cpuid-ryzen2
Add cpuid for AMD Ryzen 2
2 parents ea1f395 + d0ec432 commit 504310e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cpuid_x86.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,8 @@ int get_cpuname(void){
14521452
switch (model) {
14531453
case 1:
14541454
// AMD Ryzen
1455+
case 8:
1456+
// AMD Ryzen2
14551457
if(support_avx())
14561458
#ifndef NO_AVX2
14571459
return CPUTYPE_ZEN;

driver/others/dynamic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ static gotoblas_t *get_coretype(void){
607607
}
608608
}
609609
} else if (exfamily == 8) {
610-
if (model == 1) {
610+
if (model == 1 || model == 8) {
611611
if(support_avx())
612612
return &gotoblas_ZEN;
613613
else{

0 commit comments

Comments
 (0)