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

Add a profile for ICC-2022. #403

Merged
merged 7 commits into from
Mar 23, 2023
Merged

Add a profile for ICC-2022. #403

merged 7 commits into from
Mar 23, 2023

Conversation

wmaxey
Copy link
Member

@wmaxey wmaxey commented Mar 22, 2023

Adds a new config for ICC to our CI.

@miscco miscco requested review from gevtushenko and griwes March 23, 2023 11:00
Comment on lines +47 to +51
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM")
set(LIBCUDACXX_TEST_COMPILER_FLAGS
"${LIBCUDACXX_TEST_COMPILER_FLAGS} \
--compiler-options=-fno-fast-math")
endif()
Copy link
Collaborator

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")?

Copy link
Collaborator

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

Copy link
Member Author

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.

@miscco miscco force-pushed the docker/icc_config branch 2 times, most recently from b496798 to 2472a5f Compare March 23, 2023 12:34
miscco added 2 commits March 23, 2023 14:24
This breaks essentially all floating point tests. With this I can run the whole test suite fine with ICC-2023.0.0
@miscco miscco force-pushed the docker/icc_config branch from 2472a5f to dc5e51a Compare March 23, 2023 13:25
@@ -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)
Copy link
Collaborator

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.

miscco and others added 2 commits March 23, 2023 15:00
Co-authored-by: Georgy Evtushenko <[email protected]>
@wmaxey wmaxey merged commit 97d2daa into main Mar 23, 2023
@wmaxey wmaxey deleted the docker/icc_config branch March 23, 2023 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants