Browse Source
Merge pull request #3329 from martin-frbg/issue3272
Work around gcc11+ miscompiling C/ZBLAS3 tests at -O3
tags/v0.3.18
Martin Kroeker
GitHub
4 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
13 additions and
1 deletions
-
ctest/CMakeLists.txt
-
ctest/Makefile
-
test/CMakeLists.txt
-
test/Makefile
|
|
|
@@ -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 :: |
|
|
|
|