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
|
override CFLAGS += -DADD$(BU) -DCBLAS
|
||||||
ifeq ($(F_COMPILER),GFORTRAN)
|
ifeq ($(F_COMPILER),GFORTRAN)
|
||||||
|
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
|
||||||
|
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
|
||||||
|
endif
|
||||||
override FFLAGS += -fno-tree-vectorize
|
override FFLAGS += -fno-tree-vectorize
|
||||||
endif
|
endif
|
||||||
override TARGET_ARCH=
|
override TARGET_ARCH=
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
TOPDIR = ..
|
TOPDIR = ..
|
||||||
include ../Makefile.system
|
include ../Makefile.system
|
||||||
ifeq ($(F_COMPILER),GFORTRAN)
|
ifeq ($(F_COMPILER),GFORTRAN)
|
||||||
|
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
|
||||||
|
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
|
||||||
|
endif
|
||||||
override FFLAGS += -fno-tree-vectorize
|
override FFLAGS += -fno-tree-vectorize
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue