-
Notifications
You must be signed in to change notification settings - Fork 663
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] Bail out in GPUReduceBankConflicts if we have collapse_shape user #18863
[GPU] Bail out in GPUReduceBankConflicts if we have collapse_shape user #18863
Conversation
…pe users Signed-off-by: Nirvedh <nirvedh@gmail.com>
555709f
to
5c82292
Compare
compiler/src/iree/compiler/Codegen/Common/GPU/GPUReduceBankConflicts.cpp
Outdated
Show resolved
Hide resolved
compiler/src/iree/compiler/Codegen/Common/GPU/GPUReduceBankConflicts.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Nirvedh <nirvedh@gmail.com>
Signed-off-by: Nirvedh <nirvedh@gmail.com>
d246351
to
379040c
Compare
Signed-off-by: Nirvedh <nirvedh@gmail.com>
if (isa<ViewLikeOpInterface>(user)) { | ||
for (auto u : user->getUsers()) { |
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.
Should probably add arith::SelectOp to this too. And ops with a block that has an argument tied to this use should add the block arg users (I think we mainly need to worry about scf.for).
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 think both of these cases should be okay with the pass, as it will add a strided subview with the same shape as the pre padded alloc and replace the type in all the users, the problem with the collapse shape case is it does not support strides that dont add up to the shape.
If there is some IR case you are worried about, happy to add that as a test.
…er (#18863) This is unsupported by upstream and can lead to a compiler error. llvm/llvm-project#112994 Progress towards: #18858 --------- Signed-off-by: Nirvedh <nirvedh@gmail.com> Signed-off-by: Elias Joseph <eljoseph@amd.com>
This is unsupported by upstream and can lead to a compiler error. llvm/llvm-project#112994
Progress towards: #18858