tmatmul and tgemv Besides low precision#462
Open
yuqiha wants to merge 4 commits into
Open
Conversation
Zhendong404
requested changes
Jun 1, 2026
| ) | ||
| def template_tmatmul_acc(acc_in: pto.Tile, lhs: pto.Tile, rhs: pto.Tile, dst: pto.Tile): | ||
| m, k = lhs.valid_shape | ||
| n, _ = rhs.valid_shape |
Collaborator
There was a problem hiding this comment.
这里n取成valid_row了,应该是valid_col
| ) | ||
| def template_tgemv(lhs: pto.Tile, rhs: pto.Tile, acc: pto.Tile): | ||
| _, k = lhs.valid_shape | ||
| n, _ = rhs.valid_shape |
| ) | ||
| def template_tgemv_acc(acc_in: pto.Tile, lhs: pto.Tile, rhs: pto.Tile, dst: pto.Tile): | ||
| _, k = lhs.valid_shape | ||
| n, _ = rhs.valid_shape |
| (pto.f16, pto.f16, pto.f16, pto.f32), | ||
| (pto.f16, pto.f16, pto.bf16, pto.f32), | ||
| (pto.f16, pto.f16, pto.f32, pto.f32), | ||
| (pto.bf16, pto.bf16, pto.bf16, pto.f32), |
Collaborator
There was a problem hiding this comment.
TMatmul要求bias.dtype == dst.dtype,这几个dtypes类型有问题
|
|
||
| pto.set_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.wait_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.mad %l0a, %l0b, %l0c, %c48_i64, %c64_i64, %c64_i64 disable_gemv |
Collaborator
There was a problem hiding this comment.
无效测例,没有走TileOp ---ExpandTileOp---> VectorOp的路径
|
|
||
| pto.set_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.wait_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.mad %l0a, %l0b, %l0c, %c16_i64, %c64_i64, %c320_i64 |
|
|
||
| pto.set_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID1"] | ||
| pto.wait_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID1"] | ||
| pto.mad_acc %l0a, %l0b, %l0c, %c16_i64, %c16_i64, %c16_i64 disable_gemv |
|
|
||
| pto.set_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.wait_flag["PIPE_MTE1", "PIPE_M", "EVENT_ID0"] | ||
| pto.mad_bias %l0a, %l0b, %l0c, %bias_ptr, %c16_i64, %c16_i64, %c16_i64 disable_gemv |
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.
No description provided.