From 539d00afd22a7adaaebe6dec2e77198b482d4ff1 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 8 Apr 2022 22:57:01 +0200 Subject: [PATCH] disable flang optimizations --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 786fdd735..172cbf60f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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)