Skip to content

Commit

Permalink
Disable flang (over-)optimizations in BLAS tests (OpenMathLib#3600)
Browse files Browse the repository at this point in the history
* limit flang optimizations to -O2
  • Loading branch information
martin-frbg authored Apr 9, 2022
1 parent 65a14d4 commit bef3871
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bef3871

Please sign in to comment.