summaryrefslogtreecommitdiff
path: root/Makefile.x86_64
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2018-06-20 15:16:19 +0200
committerGitHub <noreply@github.com>2018-06-20 15:16:19 +0200
commit0c5b7b400b3973d214ce24c566be4446743eacf7 (patch)
tree44d05373c98f7d09c7cdc7097f9395ddf5cae8d6 /Makefile.x86_64
parent26e1cfb65314a5579cc74aa8d7d30660db3e9ee1 (diff)
downloadopenblas-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_647
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