Browse Source

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
tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
edacf9b397
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      ctest/Makefile
  2. +3
    -0
      test/Makefile

+ 3
- 0
ctest/Makefile View File

@@ -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=


+ 3
- 0
test/Makefile View File

@@ -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…
Cancel
Save