diff options
author | Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> | 2019-01-05 19:41:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-05 19:41:13 +0100 |
commit | 31ed19e8b907f72ed4c8ef3165d8577b55264861 (patch) | |
tree | 00e8a71164bfd453bb03297a2a4450f03a2996bd /driver | |
parent | e1574fa2b4a2a781be70d8d521bb3b80a572ca9d (diff) | |
download | openblas-31ed19e8b907f72ed4c8ef3165d8577b55264861.tar.gz openblas-31ed19e8b907f72ed4c8ef3165d8577b55264861.tar.bz2 openblas-31ed19e8b907f72ed4c8ef3165d8577b55264861.zip |
Add message for SkylakeX and KNL fallbacks to Haswell
Diffstat (limited to 'driver')
-rw-r--r-- | driver/others/dynamic.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/driver/others/dynamic.c b/driver/others/dynamic.c index 4c966260d..ba93fca8b 100644 --- a/driver/others/dynamic.c +++ b/driver/others/dynamic.c @@ -346,7 +346,7 @@ extern void openblas_warning(int verbose, const char * msg); #define FALLBACK_VERBOSE 1 #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" #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" -#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" +#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" #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" static int get_vendor(void){ @@ -526,8 +526,10 @@ static gotoblas_t *get_coretype(void){ // Intel Skylake X if (support_avx512()) return &gotoblas_SKYLAKEX; - if(support_avx2()) + if(support_avx2()){ + openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK); return &gotoblas_HASWELL; + } if(support_avx()) { openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK); return &gotoblas_SANDYBRIDGE; @@ -550,8 +552,10 @@ static gotoblas_t *get_coretype(void){ } //Intel Phi Knights Landing if (model == 7) { - if(support_avx2()) + if(support_avx2()){ + openblas_warning(FALLBACK_VERBOSE, HASWELL_FALLBACK); return &gotoblas_HASWELL; + } if(support_avx()) { openblas_warning(FALLBACK_VERBOSE, SANDYBRIDGE_FALLBACK); return &gotoblas_SANDYBRIDGE; |