Repository navigation
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
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 #25038, layer 3 of registered GitHub native stack #25040. The replacement keeps this PR's latest content and ready/draft status. This PR retains its original review history.
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 #25031. Current base:
lamarrr/reduce-2-scalar.Head branches live in
lamarrr/cudf. Upstreamlamarrr/reduce-*branches mirror predecessor commits to provide GitHub PR bases.Merge into
mainin order: after each predecessor lands, restack its successor ontomainand retarget that PR tomainbefore merging. Keep base mirrors synchronized with their fork heads while reviewing updates.Checklist