This repository was archived by the owner on Feb 24, 2026. It is now read-only.
[TL] Append Macro Test Case for GEMM and Dequant GEMM#190
Merged
LeiWang1999 merged 63 commits intomicrosoft:mainfrom Sep 26, 2024
LeiWang1999:tl-layout
Merged
[TL] Append Macro Test Case for GEMM and Dequant GEMM#190LeiWang1999 merged 63 commits intomicrosoft:mainfrom LeiWang1999:tl-layout
LeiWang1999 merged 63 commits intomicrosoft:mainfrom
LeiWang1999:tl-layout
Conversation
…ability and maintainability
Contributor
Author
|
The syntax: # Perform Matrix Multiplication
ptx_macro_generator.MMA(ptx_macro_generator, A_local, B_local, C_local)is a bit ugly, maybe we can find a way to avoid duplicating the |
Contributor
Author
|
optimize to: for ki in T.serial(0, (block_K // micro_size_k)):
# Load A into fragment
mma_emitter.ldmatrix_a(
A_local,
A_shared,
ki,
thread_bindings=thread_bindings,
)
# Load B into fragment
mma_emitter.ldmatrix_b(
B_local,
B_shared,
ki,
thread_bindings=thread_bindings,
)
# Perform Matrix Multiplication
mma_emitter.mma(A_local, B_local, C_local)
# Perform STMatrix
mma_emitter.stmatrix(
C_local,
C_shared,
thread_bindings=thread_bindings,
) |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Introduce test cases for TL.
TODO Items