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
parent
commit
e0e88f9edc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions
  1. +3
    -0
      ctest/CMakeLists.txt
  2. +3
    -0
      ctest/Makefile
  3. +4
    -0
      test/CMakeLists.txt
  4. +3
    -1
      test/Makefile

+ 3
- 0
ctest/CMakeLists.txt View File

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


+ 3
- 0
ctest/Makefile View File

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



+ 4
- 0
test/CMakeLists.txt View File

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


+ 3
- 1
test/Makefile View File

@@ -1,6 +1,8 @@
TOPDIR = ..
include ../Makefile.system

ifeq ($(F_COMPILER),GFORTRAN)
override FFLAGS += -fno-tree-vectorize
endif

ifeq ($(NOFORTRAN),1)
all ::


Loading…
Cancel
Save