[Metax][TLE] Metax TLE support local pointer. - #971
Open
cjh9368 wants to merge 1 commit into
Open
Conversation
cjh9368
requested review from
Galaxy1458,
menchunlei,
sunnycase and
zhzhcookie
as code owners
August 12, 2026 09:35
Collaborator
|
Thanks for adding METAX support for |
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.
METAX backend support for TLE GPU local pointers
This patch adds METAX/MACA support for TLE local pointers. TLE kernels can now create pointers to shared-memory allocations and access the referenced data through standard Triton load/store operations.
Supported APIs
tle.gpu.alloc(..., scope=tle.gpu.smem)tle.gpu.local_ptr(buffer, indices=None)indicesis omitted.tl.load(local_ptr, mask=None, other=None)tl.store(local_ptr, value, mask=None)These APIs can be used in elementwise kernels, loops, and conditional control-flow regions. Local pointers can also be used together with
tle.gpu.copyto stage global-memory data in TLE shared memory before accessing it throughtl.loadandtl.store.Lowering path
Key points for the METAX implementation:
Scope and limitations
This PR enables TLE local pointers for load/store-based kernels.
TLE kernels containing a
tt.dot/tl.dotoperation are not supported on the METAX backend yet. Such kernels are rejected during compilation. Dot-based local-pointer tests are therefore excluded from the METAX test suite for now.