Merge pull request #1148 from gcp/fix-dynamic-zen

Fix dynamic detection for ZEN CPUs.
This commit is contained in:
Martin Kroeker 2017-04-10 20:17:14 +02:00 committed by GitHub
commit ab9ec4ab4e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
@ -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))
{