Disable gfortran tree vectorizer to avoid gcc11+ miscompilation at O3

This commit is contained in:
Martin Kroeker
2021-07-30 14:20:12 +02:00
committed by GitHub
parent 1b6db3dbba
commit cbc41973fd

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