-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable dps ops for matmul #15285
enable dps ops for matmul #15285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
1777370
to
5bfed25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
ttnn/cpp/ttnn/operations/experimental/ccl/all_gather_matmul/device/all_gather_matmul_op.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
ttnn/cpp/ttnn/operations/experimental/ccl/all_gather_matmul/device/all_gather_matmul_op.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/1)
ttnn/cpp/ttnn/operations/experimental/ccl/all_gather_matmul/device/all_gather_matmul_op.cpp
Outdated
Show resolved
Hide resolved
ttnn/cpp/ttnn/operations/experimental/ccl/all_gather_matmul/device/all_gather_matmul_op.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (1/2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang-Tidy
found issue(s) with the introduced code (2/2)
be88323
to
5159d69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides pipelines, please also wait at least for Eyon's and Brian's approvals before merging.
3de4b61
to
7073e2f
Compare
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
Signed-off-by: Amruth Sandhupatla <[email protected]>
154e2bb
to
9edd1f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also run t3k model perf (the change looks completely fine but just to be safe)
That's broken on main. You'd need to just check that you're not introducing any new failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good
https://github.com/tenstorrent/tt-metal/actions/runs/12417202012 @SeanNijjar |
TTNN supports `tranpose_a` and `transpose_b` paramaters as default valued boolean (false) parameter for matmul and linear op. Some frontends also have this parameter. This PR introduces it. I have also refactored verifiers in some places. I have removed `test/ttmlir/Dialect/TTIR/matmul/matmul_tests_positive.mlir` because there is the same `matmul_tests_positive.mlir` in `TTNN` directory and `TTIR` checks are done entirely as a part of that test. Canonicalization pattern is added that transforms `matmul(tranpose(lhs), rhs, transpose_lhs, transpose_rhs)` to `matmul(lhs, rhs, !transpose_lhs, transpose_rhs)`. Same for the `rhs` and linear op. I have also updated runtime to reflect a change in `tt-metal` tenstorrent/tt-metal#15285. I have opened a separate issue regarding a "Adding an op" doc, because matmul is used as an example there. #1749 Closes #1305
Ticket
Link to Github Issue:
#15038
Problem description
Provide context for the problem.
Dps ops are not being generated in MLIR for matmul op.
What's changed
Describe the approach used to solve the problem.
Summarize the changes made and its impact.
Enabled std::optional for ourput tensor as seen for other dps supported ops such as Embedding & element-wise ops
Checklist