summaryrefslogtreecommitdiff
path: root/Makefile.x86_64
diff options
context:
space:
mode:
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>2020-10-20 23:56:30 +0200
committerGitHub <noreply@github.com>2020-10-20 23:56:30 +0200
commit00813363bedef30ebd49373c8ccb4c8de6711ed2 (patch)
tree894b4818f3fad9588bd49747c56fa53472d3bf46 /Makefile.x86_64
parent336e35469a8d506388e0582054e8f9a5feb5733e (diff)
downloadopenblas-00813363bedef30ebd49373c8ccb4c8de6711ed2.tar.gz
openblas-00813363bedef30ebd49373c8ccb4c8de6711ed2.tar.bz2
openblas-00813363bedef30ebd49373c8ccb4c8de6711ed2.zip
Enable -mavx2 for flang as well
Diffstat (limited to 'Makefile.x86_64')
-rw-r--r--Makefile.x86_644
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.x86_64 b/Makefile.x86_64
index 3a42e19e4..58264262e 100644
--- a/Makefile.x86_64
+++ b/Makefile.x86_64
@@ -90,6 +90,10 @@ GCCMINORVERSIONGTEQ7 := $(shell expr `$(FC) -dumpversion | cut -f2 -d.` \>= 7)
ifeq ($(GCCVERSIONGTEQ4)$(GCCMINORVERSIONGTEQ7), 11)
FCOMMON_OPT += -mavx2
endif
+else
+ifeq ($(F_COMPILER), FLANG)
+FCOMMON_OPT += -mavx2
+endif
endif
endif
endif