[TLE] Add tle.cumsum & Optimize TopK-Selector#489
Draft
sunnycase wants to merge 15 commits intotriton_v3.6.xfrom
Draft
[TLE] Add tle.cumsum & Optimize TopK-Selector#489sunnycase wants to merge 15 commits intotriton_v3.6.xfrom
sunnycase wants to merge 15 commits intotriton_v3.6.xfrom
Conversation
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.
Summary
This PR builds on PR #395 (initial distributed APIs) and completes the 3.6 migration for TLE TopK/remote-pointer paths with root-cause fixes in lowering and backend codegen.
What’s Added
1. New TLE primitive:
tle.cumsum(...)exclusive, total = tle.cumsum(input, axis=..., reverse=..., dtype=...)tle.exclusive_cumsum2. Extended pointer primitives
tle.gpu.local_ptr(buffer, indices=None)now supports full-view pointer materialization (no explicit indices needed).tle.remote(...)now supports direct pointer tensors (tl.tensorpointers), not only buffered tensors.3. Compiler/lowering pipeline updates
triton-tle-select-encodingstriton-tle-insert-local-pointer-barrierstriton-tle-optimize-local-pointer-loadstriton-tle-optimize-local-pointer-storestriton-tle-optimize-exclusive-cumsum-layoutstriton-tle-lower-exclusive-cumsum3and7).Performance
Environment
A) TLE TopK Selector (batch = 64)
Command:
Triton / Best TLE)B) TLE TopK Selector (batch = 1)
Command:
Triton / Best TLE)C) TopK Kernel Microbenchmark (radix/streaming/torch)
Command:
Torch / Best Triton)Validation
./build-nvidia.sh) after rebase to ensure updated TLE passes/lowering were active.