-
Notifications
You must be signed in to change notification settings - Fork 320
Add NVRTC compatibility errors to CUB headers #7079
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
base: main
Are you sure you want to change the base?
Conversation
bernhardmgruber
left a comment
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, just one suggestion
|
|
||
| #include <cub/config.cuh> | ||
|
|
||
| #ifndef CCCL_DISABLE_CUB_NVRTC_COMPATIBILITY_CHECK |
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.
Suggestion: Let's generalize the suppression macro:
| #ifndef CCCL_DISABLE_CUB_NVRTC_COMPATIBILITY_CHECK | |
| #ifndef CCCL_DISABLE_NVRTC_COMPATIBILITY_CHECK |
We may want to apply this to other places well.
Please rename all occurences.
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.
Sounds good to me, renamed the macro now
|
/ok to test 09dc4c1 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
😬 CI Workflow Results🟥 Finished in 1d 12h: Pass: 97%/95 | Total: 5d 10h | Max: 6h 00m | Hits: 67%/96396See results here. |
Description
Closes #5405
#6035 added an NVRTC-specific diagnostic to the CUB umbrella header (
cub/cub.cuh), but confusing NVRTC compilation failures can still occur when including other public CUB headers that are incompatible with NVRTC. This PR extends similar diagnostics to additional public CUB headers that rely on host-side functionality and are therefore unsupported when compiling with NVRTC.Checklist