Skip to content

Conversation

@hzaidi05
Copy link

@hzaidi05 hzaidi05 commented Jan 5, 2026

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

@hzaidi05 hzaidi05 requested a review from a team as a code owner January 5, 2026 11:40
@hzaidi05 hzaidi05 requested a review from elstehle January 5, 2026 11:40
@github-project-automation github-project-automation bot moved this to Todo in CCCL Jan 5, 2026
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Jan 5, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Jan 5, 2026
@hzaidi05 hzaidi05 changed the title Add NVRTC compatibility warnings to CUB headers Add NVRTC compatibility errors to CUB headers Jan 5, 2026
Copy link
Contributor

@bernhardmgruber bernhardmgruber left a 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
Copy link
Contributor

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:

Suggested change
#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.

Copy link
Author

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

@bernhardmgruber
Copy link
Contributor

/ok to test 09dc4c1

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@bernhardmgruber bernhardmgruber enabled auto-merge (squash) January 7, 2026 19:28
@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

😬 CI Workflow Results

🟥 Finished in 1d 12h: Pass: 97%/95 | Total: 5d 10h | Max: 6h 00m | Hits: 67%/96396

See results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

[FEA]: Headers that don't support NVRTC should emit diagnostic

2 participants