Detect other Intel Skylake cores.

http://users.atw.hu/instlatx64/
This commit is contained in:
Zhang Xianyi
2015-09-09 10:47:17 -05:00
parent 61ae47eb99
commit cc7cab8a45
2 changed files with 32 additions and 1 deletions

View File

@@ -252,6 +252,15 @@ static gotoblas_t *get_coretype(void){
return &gotoblas_NEHALEM; //OS doesn't support AVX. Use old kernels.
}
}
//Intel Skylake
if (model == 14) {
if(support_avx())
return &gotoblas_HASWELL;
else{
openblas_warning(FALLBACK_VERBOSE, NEHALEM_FALLBACK);
return &gotoblas_NEHALEM; //OS doesn't support AVX. Use old kernels.
}
}
return NULL;
case 5:
//Intel Broadwell
@@ -264,7 +273,7 @@ static gotoblas_t *get_coretype(void){
}
}
//Intel Skylake
if (model == 14) {
if (model == 14 || model == 5) {
if(support_avx())
return &gotoblas_HASWELL;
else{