-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve compiler detection defines #1320
Improve compiler detection defines #1320
Conversation
3d6c6c4
to
9646d32
Compare
9646d32
to
b56c2af
Compare
@miscco i updated PR |
libcudacxx/include/cuda/std/detail/libcxx/include/__cccl_config
Outdated
Show resolved
Hide resolved
c17a2f5
to
df32822
Compare
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.
This looks good. As this touches a lot of code I would like a second review from @allisonvacanti or @gevtushenko
/ok to test |
@miscco can you please rerun tests? |
/ok to test |
/ok to test |
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.
LGTM
/ok to test |
PR NVIDIA#1320 broke compilation with NVC++ when `<thrust/random.h>` was the first header to be included. This code that was there previously ``` defined(_CCCL_COMPILER_CLANG) || \ defined(_CCCL_COMPILER_ICC) ``` does not include `<stdint.h>` when NVC++ is the compiler, but the file uses types defined in `<stdint.h>`, such as: ``` typedef ::int8_t int8_t; typedef ::int16_t int16_t; ``` Fix this problem by using the same `#if` condition for including `<stdint.h>` as for using the ``::intN_t` types.
PR #1320 broke compilation with NVC++ when `<thrust/random.h>` was the first header to be included. This code that was there previously ``` defined(_CCCL_COMPILER_CLANG) || \ defined(_CCCL_COMPILER_ICC) ``` does not include `<stdint.h>` when NVC++ is the compiler, but the file uses types defined in `<stdint.h>`, such as: ``` typedef ::int8_t int8_t; typedef ::int16_t int16_t; ``` Fix this problem by using the same `#if` condition for including `<stdint.h>` as for using the ``::intN_t` types.
Description
closes #572
__cccl__confg
such as_CCCL_COMPILER_[CLANG|GCC|MSVC ...
Checklist