-
Notifications
You must be signed in to change notification settings - Fork 645
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
[GPU] Add a pass to convert accumulating GEMMs to GEMMs #19587
[GPU] Add a pass to convert accumulating GEMMs to GEMMs #19587
Conversation
78481bb
to
7735e86
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.
I'm not sure if we really need this or not. I left some comments about the issue in #19546, please take a look.
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.
This LGTM, but I'll wait to approve until we've come to a concensus on the approach.
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/test/convert_accgemm_to_gemm.mlir
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/test/convert_accgemm_to_gemm.mlir
Outdated
Show resolved
Hide resolved
Signed-off-by: Nirvedh Meshram <[email protected]>
Signed-off-by: Nirvedh Meshram <[email protected]>
7735e86
to
47c2309
Compare
Looks like we have consensus on #19546 that we want this pass for TileAndFuse. |
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Nirvedh Meshram <[email protected]>
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.
Just some drive-by nits
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/ConvertAccGEMMToGEMMPass.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Nirvedh Meshram <[email protected]>
Signed-off-by: Nirvedh Meshram <[email protected]>
abc56be
to
b7930af
Compare
Converts dispatches with accumulating GEMMs that are doing in place read/write to GEMM + elementwise add.
This is needed for the TileAndFuse path until we find a more permanent fix for #19546