Skip to content

Commit

Permalink
Merge pull request #1148 from gcp/fix-dynamic-zen
Browse files Browse the repository at this point in the history
Fix dynamic detection for ZEN CPUs.
  • Loading branch information
martin-frbg authored Apr 10, 2017
2 parents 20a413e + 0cbd2d3 commit ab9ec4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/others/dynamic.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static gotoblas_t *get_coretype(void){

}
}
} else if (family == 8) {
} else if (exfamily == 8) {
if (model == 1) {
if(support_avx())
return &gotoblas_ZEN;
Expand Down Expand Up @@ -481,7 +481,7 @@ static gotoblas_t *force_coretype(char *coretype){
char message[128];
//char mname[20];

for ( i=1 ; i <= 22; i++)
for ( i=1 ; i <= 23; i++)
{
if (!strncasecmp(coretype,corename[i],20))
{
Expand Down

0 comments on commit ab9ec4a

Please sign in to comment.