Skip to content

Commit bef3871

Browse files
authored
Disable flang (over-)optimizations in BLAS tests (#3600)
* limit flang optimizations to -O2
1 parent 65a14d4 commit bef3871

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ enable_language(Fortran)
55
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
66
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-tree-vectorize")
77
endif()
8-
8+
if (CMAKE_Fortran_COMPILER_ID STREQUAL Flang)
9+
set(CMAKE_Fortran_FLAGS "$CMAKE_Fortran_FLAGS -O2")
10+
endif()
911

1012
if (BUILD_SINGLE)
1113
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)

0 commit comments

Comments
 (0)