Skip to content

Commit 31ed19e

Browse files
authored
Add message for SkylakeX and KNL fallbacks to Haswell
1 parent e1574fa commit 31ed19e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

driver/others/dynamic.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ extern void openblas_warning(int verbose, const char * msg);
346346
#define FALLBACK_VERBOSE 1
347347
#define NEHALEM_FALLBACK "OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Nehalem kernels as a fallback, which may give poorer performance.\n"
348348
#define SANDYBRIDGE_FALLBACK "OpenBLAS : Your OS does not support AVX2 instructions. OpenBLAS is using Sandybridge kernels as a fallback, which may give poorer performance.\n"
349-
#define HASWELL_FALLBACK "OpenBLAS : Your OS does not support AVX512 instructions. OpenBLAS is using Haswell kernels as a fallback, which may give poorer performance.\n"
349+
#define HASWELL_FALLBACK "OpenBLAS : Your OS does not support AVX512VL instructions. OpenBLAS is using Haswell kernels as a fallback, which may give poorer performance.\n"
350350
#define BARCELONA_FALLBACK "OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Barcelona kernels as a fallback, which may give poorer performance.\n"
351351

352352
static int get_vendor(void){
@@ -526,8 +526,10 @@ static gotoblas_t *get_coretype(void){
526526
// Intel Skylake X
527527
if (support_avx512())
528528
return &gotoblas_SKYLAKEX;
529-
if(support_avx2())
529+
if(support_avx2()){
530+
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
530531
return &gotoblas_HASWELL;
532+
}
531533
if(support_avx()) {
532534
openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
533535
return &gotoblas_SANDYBRIDGE;
@@ -550,8 +552,10 @@ static gotoblas_t *get_coretype(void){
550552
}
551553
//Intel Phi Knights Landing
552554
if (model == 7) {
553-
if(support_avx2())
555+
if(support_avx2()){
556+
openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK);
554557
return &gotoblas_HASWELL;
558+
}
555559
if(support_avx()) {
556560
openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK);
557561
return &gotoblas_SANDYBRIDGE;

0 commit comments

Comments
 (0)