-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add values to compiler macros #2503
Conversation
🟩 CI finished in 1h 37m: Pass: 100%/364 | Total: 1d 15h | Avg: 6m 28s | Max: 49m 20s | Hits: 98%/25712
|
Project | |
---|---|
CCCL Infrastructure | |
+/- | libcu++ |
CUB | |
Thrust | |
CUDA Experimental | |
pycuda | |
CUDA C Core Library |
Modifications in project or dependencies?
Project | |
---|---|
CCCL Infrastructure | |
+/- | libcu++ |
+/- | CUB |
+/- | Thrust |
+/- | CUDA Experimental |
+/- | pycuda |
+/- | CUDA C Core Library |
🏃 Runner counts (total jobs: 364)
# | Runner |
---|---|
297 | linux-amd64-cpu16 |
28 | linux-arm64-cpu16 |
24 | linux-amd64-gpu-v100-latest-1 |
15 | windows-amd64-cpu16 |
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 am opposed to that.
This is an internal feature that is uniformly used throughout the whole libraries. We always include compliler.h through the __cccl_config which is included everywhere through the respective library configs.
If we ever have issues with that it is a library bug
I agree on your point, but it is minimal change that doesn't affect CCCL. I don't see any downside right now. Secondly, the next step is to expose such macros, see. #2504. They are so common across the CUDA ecosystem that would be weird to keep them internal only. EDIT: without #2504, this PR makes little sense |
Description
Compiler identification macros are defined but don't have a value. This is bug-prone, namely when the user forgets to add the header:
this statement could be skipped or not depending on the inclusion of
compiler.h
even if gcc is actually used