Skip to content

Commit

Permalink
Work around spurious BLAS3 test errors on LOONGSON3R3/4 (#4667)
Browse files Browse the repository at this point in the history
Force compilation with gfortran to use O0 on older Loongson hardware to avoid spurious test failures
  • Loading branch information
martin-frbg committed Apr 30, 2024
1 parent 89e3fd0 commit edacf9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ctest/Makefile
Expand Up @@ -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=
Expand Down
3 changes: 3 additions & 0 deletions test/Makefile
@@ -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

Expand Down

0 comments on commit edacf9b

Please sign in to comment.