Skip to content

Implement the new tuning API for DeviceScan - #7565

Merged
griwes merged 43 commits into
NVIDIA:mainfrom
griwes:feature/new-tuning-api/scan
Mar 24, 2026
Merged

griwes merged 43 commits into
NVIDIA:mainfrom
griwes:feature/new-tuning-api/scan

Conversation

@griwes

@griwes griwes commented Feb 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Resolves #7521
Resolves #7476
Resolves #6821

Ready for review, still planning to do SASS inspection in some crucial places.

Sidenote: this exact type of task seems to fit Codex really, really well.

Checklist

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

@griwes
griwes requested review from a team as code owners February 8, 2026 05:44
@griwes
griwes requested a review from shwina February 8, 2026 05:44
@griwes
griwes requested a review from elstehle February 8, 2026 05:44
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Feb 8, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Feb 8, 2026
@github-actions

This comment has been minimized.

@bernhardmgruber bernhardmgruber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks really good already! Great work!

Comment thread c/parallel/src/scan.cu Resolved
@bernhardmgruber

Copy link
Copy Markdown
Contributor

@griwes we just merged #6811, which also touches the scan tunings. This will probably create some more work for this PR. Issue #6821 also tracks making the new scan implementation available to CCCL.C. Do you think you can handle this as well?

@bernhardmgruber

Copy link
Copy Markdown
Contributor

@griwes I pulled out the delay constructor refactoring in #7668 so I can better stack my refactorings on top, in case this PR takes a bit longer (sorry again for the extra work with warpspeed!)

@griwes

griwes commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Note, the warpspeed integration is still largely untested; I've added an rtxpro6000 test job to c.parallel and that will be the primary test right now. I'll lease a machine with a relevant GPU if that fails, or if there's anything that's clearly wrong to someone's eyes in review.

Edit: also seems I messed up some constexprness 😅

@github-actions

This comment has been minimized.

This currently makes thrust.test.scan fail, which needs to be investigated, since it worked before in the presence of the warpspeed implementation
@bernhardmgruber
bernhardmgruber requested a review from a team as a code owner March 23, 2026 14:02
@bernhardmgruber

Copy link
Copy Markdown
Contributor

While investigating the SASS changes, I noticed that some symbols in the CUB benchmarks contained the use of policy_selector_from_hub, which we should no longer see (its only use to support users directly accessing the dispatcher). I found out that those came from Thrust, so I ported the Thrust CUB backend to use cub::detail::scan::dispatch directly. But that is leading to test failures now in thrust.test.scan, which is super odd.

@bernhardmgruber

Copy link
Copy Markdown
Contributor

There are now no SASS changes for cub.bench.scan.exclusive.sum.base on SM75;80;86;90;100;120

@github-actions

This comment has been minimized.

@bernhardmgruber

Copy link
Copy Markdown
Contributor

pre-commit.ci autofix

@bernhardmgruber

Copy link
Copy Markdown
Contributor

/ok to test 3e55bd0

@bernhardmgruber bernhardmgruber left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have collected a few more pieces of refactorings, but I think those should go to a separate PR after this one.

I dislike some of the host code butchery that was required for CCCL.C, but in most cases I don't see how it could have been done better.

Since there are no SASS diffs and the tests pass, I think this is good to go in!

@github-actions

This comment has been minimized.

@griwes

griwes commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

@pre-commit-ci
pre-commit-ci Bot requested a review from a team as a code owner March 24, 2026 05:00
@pre-commit-ci
pre-commit-ci Bot requested a review from gonidelis March 24, 2026 05:00
@copy-pr-bot

copy-pr-bot Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

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.

@griwes

griwes commented Mar 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 3c18256

@griwes
griwes enabled auto-merge (squash) March 24, 2026 05:08
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 12m: Pass: 100%/306 | Total: 2d 16h | Max: 45m 40s | Hits: 99%/273501

See results here.

@griwes
griwes merged commit 6a83780 into NVIDIA:main Mar 24, 2026
324 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Mar 24, 2026
@griwes
griwes deleted the feature/new-tuning-api/scan branch March 24, 2026 06:53
@bernhardmgruber bernhardmgruber mentioned this pull request Mar 24, 2026
1 task done
jainishmehta pushed a commit to jainishmehta/cccl that referenced this pull request Apr 19, 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.

Implement the new tuning API for DeviceScan Refactor cccl.c scan to use tuning API Make warpspeed scan work in CCCL.C

3 participants