Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Disable -ffast-math for IntelLLVM compilers
Browse files Browse the repository at this point in the history
This breaks essentially all floating point tests. With this I can run the whole test suite fine with ICC-2023.0.0
  • Loading branch information
miscco committed Mar 23, 2023
1 parent 72341e7 commit b496798
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .upstream-tests/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ if (NOT MSVC)
--compiler-options=-Wextra")
endif()

# Intel OneAPI compiler has fast math enabled by default which breaks almost all floating point tests
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM")
set(LIBCUDACXX_TEST_COMPILER_FLAGS
"${LIBCUDACXX_TEST_COMPILER_FLAGS} \
--compiler-options=-fno-fast-math")
endif()

if (${CMAKE_CUDA_COMPILER_ID} STREQUAL "NVIDIA")
set(LIBCUDACXX_TEST_COMPILER_FLAGS
"${LIBCUDACXX_TEST_COMPILER_FLAGS} \
Expand Down

0 comments on commit b496798

Please sign in to comment.