Work around spurious BLAS3 test errors on LOONGSON3R3/4 (#4667)
Force compilation with gfortran to use O0 on older Loongson hardware to avoid spurious test failures
This commit is contained in:
parent
89e3fd0821
commit
edacf9b397
|
@ -25,6 +25,9 @@ endif
|
|||
|
||||
override CFLAGS += -DADD$(BU) -DCBLAS
|
||||
ifeq ($(F_COMPILER),GFORTRAN)
|
||||
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
|
||||
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
|
||||
endif
|
||||
override FFLAGS += -fno-tree-vectorize
|
||||
endif
|
||||
override TARGET_ARCH=
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
TOPDIR = ..
|
||||
include ../Makefile.system
|
||||
ifeq ($(F_COMPILER),GFORTRAN)
|
||||
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
|
||||
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
|
||||
endif
|
||||
override FFLAGS += -fno-tree-vectorize
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue