diff options
author | Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> | 2018-06-20 15:16:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-20 15:16:19 +0200 |
commit | 0c5b7b400b3973d214ce24c566be4446743eacf7 (patch) | |
tree | 44d05373c98f7d09c7cdc7097f9395ddf5cae8d6 /Makefile.x86_64 | |
parent | 26e1cfb65314a5579cc74aa8d7d30660db3e9ee1 (diff) | |
download | openblas-0c5b7b400b3973d214ce24c566be4446743eacf7.tar.gz openblas-0c5b7b400b3973d214ce24c566be4446743eacf7.tar.bz2 openblas-0c5b7b400b3973d214ce24c566be4446743eacf7.zip |
Add -march=skylake-avx512 to flags if target is skylake x
Diffstat (limited to 'Makefile.x86_64')
-rw-r--r-- | Makefile.x86_64 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.x86_64 b/Makefile.x86_64 index 1ba63278a..677c05d93 100644 --- a/Makefile.x86_64 +++ b/Makefile.x86_64 @@ -8,6 +8,13 @@ endif endif endif +ifeq ($(CORE), SKYLAKEX) +ifndef NO_AVX512 +CCOMMON_OPT += -march=skylake-avx512 +FCOMMON_OPT += -march=skylake-avx512 +endif +endif + ifeq ($(OSNAME), Interix) ARFLAGS = -m x64 endif |