Skip to content

Commit 32566bf

Browse files
authored
Disable the gfortran tree vectorizer for netlib LAPACK
1 parent 5780952 commit 32566bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/lapack.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ endforeach ()
999999

10001000
if (NOT C_LAPACK)
10011001
set_source_files_properties(${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_FFLAGS}")
1002+
if (${F_COMPILER} STREQUAL "GFORTRAN")
1003+
set_source_files_properties(${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_FFLAGS} -fno-tree-vectorize")
1004+
endif()
10021005
else ()
10031006
set_source_files_properties(${LA_SOURCES} PROPERTIES COMPILE_FLAGS "${LAPACK_CFLAGS}")
10041007
endif ()

0 commit comments

Comments
 (0)