diff options
author | Zhang Xianyi <traits.zhang@gmail.com> | 2014-07-16 08:37:55 +0800 |
---|---|---|
committer | Zhang Xianyi <traits.zhang@gmail.com> | 2014-07-16 08:38:25 +0800 |
commit | c94762bb5610348b46498e82e6f37023be34d4bb (patch) | |
tree | 389a65036b582ebf009fec76c7886a8d1e08a337 /Makefile.system | |
parent | 3dd094f17a62eac22beb46e9c838c5f17b309cda (diff) | |
download | openblas-c94762bb5610348b46498e82e6f37023be34d4bb.tar.gz openblas-c94762bb5610348b46498e82e6f37023be34d4bb.tar.bz2 openblas-c94762bb5610348b46498e82e6f37023be34d4bb.zip |
Refs #401. Added NO_AVX2 flag for old binutils (e.g. RHEL6)
Diffstat (limited to 'Makefile.system')
-rw-r--r-- | Makefile.system | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.system b/Makefile.system index 1f9e8618f..c872a55dc 100644 --- a/Makefile.system +++ b/Makefile.system @@ -109,6 +109,10 @@ ifeq ($(BINARY), 32) GETARCH_FLAGS += -DNO_AVX endif +ifeq ($(NO_AVX2), 1) +GETARCH_FLAGS += -DNO_AVX2 +endif + ifeq ($(DEBUG), 1) GETARCH_FLAGS += -g endif @@ -385,7 +389,10 @@ endif ifeq ($(ARCH), x86_64) DYNAMIC_CORE = PRESCOTT CORE2 PENRYN DUNNINGTON NEHALEM OPTERON OPTERON_SSE3 BARCELONA BOBCAT ATOM NANO ifneq ($(NO_AVX), 1) -DYNAMIC_CORE += SANDYBRIDGE BULLDOZER PILEDRIVER HASWELL +DYNAMIC_CORE += SANDYBRIDGE BULLDOZER PILEDRIVER +endif +ifneq ($(NO_AVX2), 1) +DYNAMIC_CORE += HASWELL endif endif @@ -777,6 +784,10 @@ ifeq ($(BINARY), 32) CCOMMON_OPT += -DNO_AVX endif +ifeq ($(NO_AVX2), 1) +CCOMMON_OPT += -DNO_AVX2 +endif + ifdef SMP CCOMMON_OPT += -DSMP_SERVER |