Merge pull request #3329 from martin-frbg/issue3272
Work around gcc11+ miscompiling C/ZBLAS3 tests at -O3
This commit is contained in:
commit
e0e88f9edc
|
@ -4,6 +4,9 @@ include_directories(${PROJECT_BINARY_DIR})
|
|||
enable_language(Fortran)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DADD${BU} -DCBLAS")
|
||||
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
|
||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_cblas_helper.ps1
|
||||
|
|
|
@ -6,6 +6,9 @@ TOPDIR = ..
|
|||
include $(TOPDIR)/Makefile.system
|
||||
|
||||
override CFLAGS += -DADD$(BU) -DCBLAS
|
||||
ifeq ($(F_COMPILER),GFORTRAN)
|
||||
override FFLAGS += -fno-tree-vectorize
|
||||
endif
|
||||
override TARGET_ARCH=
|
||||
override TARGET_MACH=
|
||||
|
||||
|
|
|
@ -2,6 +2,10 @@ include_directories(${PROJECT_SOURCE_DIR})
|
|||
include_directories(${PROJECT_BINARY_DIR})
|
||||
|
||||
enable_language(Fortran)
|
||||
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
|
||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize")
|
||||
endif()
|
||||
|
||||
|
||||
if (BUILD_SINGLE)
|
||||
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
TOPDIR = ..
|
||||
include ../Makefile.system
|
||||
|
||||
ifeq ($(F_COMPILER),GFORTRAN)
|
||||
override FFLAGS += -fno-tree-vectorize
|
||||
endif
|
||||
|
||||
ifeq ($(NOFORTRAN),1)
|
||||
all ::
|
||||
|
|
Loading…
Reference in New Issue