Repository navigation
Conversation
This was referenced Nov 3, 2026
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.
Superseded by NVIDIA#25032, part of the draft stack targeting
NVIDIA/cudf.Description
Add
cudf::segmented_reduce_lto, reusing the scalar reduction compilation and callback machinery. Every callback receives the segment ID. Results are independent single-row columns ordered by segment and output.Provide regular segmented execution, including splitting long segments, and a small-group executor for short segments. An unknown maximum-length hint uses regular execution. Cache the device SM count in the existing context for launch sizing.
Tests cover empty/nonzero segment boundaries, filtering, strings, small and large segments, stream propagation, and errors in a later segment through small-group, regular and split-segment execution. JIT source files are explicitly registered for incremental builds.
Validation
The five affected suites passed: 1,579 tests. All 27 LTO tests passed CUDA memcheck with zero errors. The final stack passed all 122 CTest entries. CUDA 13.3.73, Release, sm_86, RTX A6000.
Stack
This PR: 3/4. Depends on #7. Base:
reduce-2-scalar.The first base,
reduce-stack-base, pins the tested upstream commit48848df0dac. Merge and restack in order.Checklist