Browse Source

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

* limit flang optimizations to -O2
tags/v0.3.21
Martin Kroeker GitHub 4 years ago
parent
commit
bef3871833
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      test/CMakeLists.txt

+ 3
- 1
test/CMakeLists.txt 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)


Loading…
Cancel
Save