Repository navigation
Implement the new tuning API for DispatchMergeSort - #8128
Merged
Merged
Conversation
bernhardmgruber
commented
Mar 20, 2026
| OffsetT, | ||
| CompareOpT>, | ||
| typename KernelLauncherFactory = CUB_DETAIL_DEFAULT_KERNEL_LAUNCHER_FACTORY, | ||
| typename VSMemHelperT = detail::merge_sort::VSMemHelper, |
Contributor
Author
There was a problem hiding this comment.
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.
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
tuning_merge_sort
branch
from
March 23, 2026 08:01
62a9b21 to
5780d5f
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
tuning_merge_sort
branch
from
March 24, 2026 08:13
5780d5f to
a0ef9a6
Compare
This comment has been minimized.
This comment has been minimized.
miscco
approved these changes
Mar 24, 2026
bernhardmgruber
enabled auto-merge (squash)
March 24, 2026 11:06
miscco
approved these changes
Mar 24, 2026
Contributor
🥳 CI Workflow Results🟩 Finished in 1h 28m: Pass: 100%/255 | Total: 5d 13h | Max: 1h 27m | Hits: 90%/160713See results here. |
NaderAlAwar
approved these changes
Mar 24, 2026
| { | ||
| if (d_temp_storage == nullptr) | ||
| { | ||
| temp_storage_bytes = 0; |
Contributor
There was a problem hiding this comment.
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.
Contributor
Author
There was a problem hiding this comment.
I also think so. I retained it from the old implementation, but I will file a new PR to change it.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cub.bench.merge_sort.pairs.baseon 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