Skip to content

[CUB]: Provide workaround to compilation errors in ptx-json with older nvrtc versions#8139

Merged
NaderAlAwar merged 2 commits intoNVIDIA:mainfrom
NaderAlAwar:ptx-json-value-nvrtc-12-4-fix
Mar 24, 2026
Merged

[CUB]: Provide workaround to compilation errors in ptx-json with older nvrtc versions#8139
NaderAlAwar merged 2 commits intoNVIDIA:mainfrom
NaderAlAwar:ptx-json-value-nvrtc-12-4-fix

Conversation

@NaderAlAwar
Copy link
Contributor

Description

closes #8138

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@NaderAlAwar NaderAlAwar requested a review from a team as a code owner March 23, 2026 16:34
@NaderAlAwar NaderAlAwar requested a review from elstehle March 23, 2026 16:34
@github-project-automation github-project-automation bot moved this to Todo in CCCL Mar 23, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Mar 23, 2026
@NaderAlAwar NaderAlAwar added the pre-commit.ci autofix apply pre-commit auto-fixes automatically label Mar 23, 2026
@pre-commit-ci pre-commit-ci bot removed the pre-commit.ci autofix apply pre-commit auto-fixes automatically label Mar 23, 2026
@pre-commit-ci pre-commit-ci bot requested a review from a team as a code owner March 23, 2026 16:38
@pre-commit-ci pre-commit-ci bot requested a review from gonidelis March 23, 2026 16:38
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Mar 23, 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.

@NaderAlAwar
Copy link
Contributor Author

/ok to test 2db1b70

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 45m: Pass: 100%/249 | Total: 4d 18h | Max: 1h 25m | Hits: 85%/159565

See results here.

Comment on lines +30 to +35
#if _CCCL_COMPILER(NVRTC, <, 12, 5)
template <auto Nested>
requires a_value<decltype(Nested)>
#else
template <a_value auto Nested>
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: There is no difference between the two formulations, so maybe lets just do

Suggested change
#if _CCCL_COMPILER(NVRTC, <, 12, 5)
template <auto Nested>
requires a_value<decltype(Nested)>
#else
template <a_value auto Nested>
#endif
template <auto Nested>
requires a_value<decltype(Nested)>

Copy link
Contributor

@bernhardmgruber bernhardmgruber Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind too much, since it's dead code anyway. When the tuning API rollout completes, this code is gone.

@NaderAlAwar NaderAlAwar merged commit 3b78f8e into NVIDIA:main Mar 24, 2026
271 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG]: ptx-json/value.cuh fails to compile on NVRTC < 12.5

3 participants