Add support to driver/others/dynamic.c too

This commit is contained in:
Matthew Treinish 2020-06-25 11:56:49 -04:00
parent 2a91452bdd
commit f37e941d52
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 12 additions and 0 deletions

View File

@ -618,6 +618,18 @@ static gotoblas_t *get_coretype(void){
return &gotoblas_NEHALEM; //OS doesn't support AVX. Use old kernels.
}
}
case 10:
if (model == 6) {
if(support_avx2())
return &gotoblas_HASWELL;
if(support_avx()) {
openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
return &gotoblas_SANDYBRIDGE;
} else {
openblas_warning(FALLBACK_VERBOSE, NEHALEM_FALLBACK);
return &gotoblas_NEHALEM; //OS doesn't support AVX. Use old kernels.
}
}
return NULL;
}
case 0xf: