disable flang optimizations

This commit is contained in:
Martin Kroeker 2022-04-08 22:57:01 +02:00 committed by GitHub
parent 65a14d4b40
commit 539d00afd2
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 -fno-vectorize -fno-slp-vectorize")
endif()
if (BUILD_SINGLE)
list( APPEND OpenBLAS_Tests sblat1 sblat2 sblat3)