-
Notifications
You must be signed in to change notification settings - Fork 186
Conversation
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM") | ||
set(LIBCUDACXX_TEST_COMPILER_FLAGS | ||
"${LIBCUDACXX_TEST_COMPILER_FLAGS} \ | ||
--compiler-options=-fno-fast-math") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These options seem to be targeting nvcc (nvc++?) when icpx is the host compiler. Should this code be under if (${CMAKE_CUDA_COMPILER_ID} STREQUAL "NVIDIA")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK this should be applied always because of our libcxx tests where we pretent to be a standard library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I specifically disabled libcxx tests with this compiler. We can turn them on later, but I wanted our most important coverage to come first.
b496798
to
2472a5f
Compare
This breaks essentially all floating point tests. With this I can run the whole test suite fine with ICC-2023.0.0
2472a5f
to
dc5e51a
Compare
@@ -648,8 +648,8 @@ typedef __char32_t char32_t; | |||
#define _LIBCUDACXX_HAS_VIRTUAL_DESTRUCTOR(...) __has_virtual_destructor(__VA_ARGS__) | |||
#endif | |||
|
|||
#if __check_builtin(is_literal) | |||
#define _LIBCUDACXX_IS_LITERAL(...) __is_literal(__VA_ARGS__) | |||
#if __check_builtin(is_literal_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding __check_builtin
-> __has_builtin
changes that used to be here. The __has_builtin
has different result compared to !__is_identifier
for some compilers. Here's a reference.
Co-authored-by: Georgy Evtushenko <[email protected]>
Co-authored-by: Georgy Evtushenko <[email protected]>
Adds a new config for ICC to our CI.