From 2aa9a0cc77363256f2b3e364055336b43b16dbe1 Mon Sep 17 00:00:00 2001 From: nscipione Date: Thu, 11 Apr 2024 16:05:18 +0100 Subject: [PATCH] Add flag to all test if using IntelLLVM compiler For consistency, adding the same math related flag to all test if the library is compiled with IntelLLVM compiler. --- test/unittest/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unittest/CMakeLists.txt b/test/unittest/CMakeLists.txt index f6044d830..099996a64 100644 --- a/test/unittest/CMakeLists.txt +++ b/test/unittest/CMakeLists.txt @@ -143,7 +143,8 @@ foreach(blas_test ${SYCL_UNITTEST_SRCS}) target_include_directories(${test_exec} PRIVATE ${CBLAS_INCLUDE} ${PORTBLAS_COMMON_INCLUDE_DIR}) list (FIND SYCL_UNITTEST_NOFASTMATH ${blas_test} _index) - if (${_index} GREATER -1) + if (${_index} GREATER -1 OR (${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM" AND + TUNING_TARGET IN_LIST non_intel_target)) target_compile_options(${test_exec} PRIVATE "-fno-fast-math") endif()