[BACKEND] Add Metax McTLE support#742
Open
cjh9368 wants to merge 4 commits into
Open
Conversation
179bb7e to
a38cd82
Compare
a38cd82 to
a6af50f
Compare
a6af50f to
04c4a40
Compare
Collaborator
|
Please format the code by |
Author
|
build |
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 Lite tile primitives in this patch
This patch adds METAX/MACA support for the main TLE Lite tile primitives:
tle.extract_tile(x, index, tile_shape)tile_shapefrom a register tensor at a tile-grid index.tl.tensor.tl.tensor, row-major linearized in the frontend.tile_shapemust be compile-time constants, match the source rank, and divide the source shape evenly along each dimension.tle.insert_tile(x, tile, index)extract_tile.Lowering path
Key points for the METAX implementation:
triton.experimental.tlefor the METAX backend, matching the shared TLE frontend import path.third_party/metax/language/maca/mctlePython location is removed.create_extract_tilecreate_insert_tilemctledialect ops:mctle.extract_tilemctle.insert_tilemctledialect and related lowering passes throughtriton._C.libtriton.mctle.Scope
This PR only enables:
tle.extract_tiletle.insert_tile