Disable flang (over-)optimizations in BLAS tests (#3600)

* limit flang optimizations to -O2
This commit is contained in:
Martin Kroeker 2022-04-09 17:14:24 +02:00 committed by GitHub
parent 65a14d4b40
commit bef3871833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ enable_language(Fortran)
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize")
endif()
if (CMAKE_Fortran_COMPILER_ID STREQUAL Flang)
set(CMAKE_Fortran_FLAGS "$CMAKE_Fortran_FLAGS -O2")
endif()
if (BUILD_SINGLE)
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)