Skip to content

Implement the new tuning API for DispatchMergeSort - #8128

Merged
bernhardmgruber merged 10 commits into
NVIDIA:mainfrom
bernhardmgruber:tuning_merge_sort
Mar 24, 2026
Merged

bernhardmgruber merged 10 commits into
NVIDIA:mainfrom
bernhardmgruber:tuning_merge_sort

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor
  • No SASS changes for cub.bench.merge_sort.pairs.base on SM120 (the only tuning is for SM60)

This PR also disables any support for the vsmem helper from CCCL.C, which is fine, as discussed internally, since it was incomplete and didn't work anyways. This will be revisited when we can JIT host code.

Fixes: #7639

@bernhardmgruber
bernhardmgruber requested review from a team as code owners March 20, 2026 23:56
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Mar 20, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Mar 20, 2026
OffsetT,
CompareOpT>,
typename KernelLauncherFactory = CUB_DETAIL_DEFAULT_KERNEL_LAUNCHER_FACTORY,
typename VSMemHelperT = detail::merge_sort::VSMemHelper,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could consider this a breaking change, but this parameter was never intended to be customized by the user. It was only intended for CCCL.C.

@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) March 24, 2026 11:06
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 28m: Pass: 100%/255 | Total: 5d 13h | Max: 1h 27m | Hits: 90%/160713

See results here.

{
if (d_temp_storage == nullptr)
{
temp_storage_bytes = 0;

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.

Important: I think that this should be at least 1. I know existing behavior sets it to 0, but in general, even when we don't require any temporary storage, we return 1.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also think so. I retained it from the old implementation, but I will file a new PR to change it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@bernhardmgruber
bernhardmgruber merged commit 10f321c into NVIDIA:main Mar 24, 2026
275 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Mar 24, 2026
@bernhardmgruber
bernhardmgruber deleted the tuning_merge_sort branch March 24, 2026 14:59
jainishmehta pushed a commit to jainishmehta/cccl that referenced this pull request Apr 19, 2026
This reverts some parts of NVIDIA#4090, not supporting vsmem in merge sort for CCCL.C

Fixes: NVIDIA#7639
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 DispatchMergeSort

3 participants