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#25031, part of the draft stack targeting
NVIDIA/cudf.Description
Add
cudf::reduce_ltofor fused reductions over multiple columns, broadcast scalars and user data. Callbacks initialize, filter, update, merge and finalize state; each requested output is returned as an independent single-row column.Kernel specialization uses the physical schema. Callback symbol routing is compiled and cached separately, so changing entry-point names reuses the kernel fragment. The implementation supports optional values/state, decoded dictionary inputs, string state and copied string outputs, and propagates callback errors.
This PR contains common reduction reflection, allocation and device machinery that segmented reduction reuses. Its tests include fused SQL examples, nulls, predicates, errors, supported inputs, wide optional state, empty state/output lists and separate memory resources.
Validation
The five affected suites passed: 1,571 tests. The final stack passed all 122 CTest entries; CUDA memcheck reported zero errors across all 27 scalar/segmented LTO tests. CUDA 13.3.73, Release, sm_86, RTX A6000.
Stack
This PR: 2/4. Depends on #6. Base:
reduce-1-shared-udf.The first base,
reduce-stack-base, pins the tested upstream commit48848df0dac. Merge and restack in order.Checklist