Skip to content

Commit

Permalink
Add flag to all test if using IntelLLVM compiler
Browse files Browse the repository at this point in the history
For consistency, adding the same math related flag to all test if the library
is compiled with IntelLLVM compiler.
  • Loading branch information
s-Nick committed Apr 11, 2024
1 parent 37a8bab commit 2aa9a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 2aa9a0c

Please sign in to comment.