Recognize Intel Tiger Lake as SkylakeX

This commit is contained in:
Martin Kroeker 2021-02-11 20:17:11 +01:00 committed by GitHub
parent ae53e3e233
commit e4e5042e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -644,6 +644,21 @@ static gotoblas_t *get_coretype(void){
return NULL; return NULL;
case 9: case 9:
case 8: case 8:
if (model == 12) { // Tiger Lake
if (support_avx512())
return &gotoblas_SKYLAKEX;
if(support_avx2()){
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
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;
}
}
if (model == 14 ) { // Kaby Lake, Coffee Lake if (model == 14 ) { // Kaby Lake, Coffee Lake
if(support_avx2()) if(support_avx2())
return &gotoblas_HASWELL; return &gotoblas_HASWELL;