-
Notifications
You must be signed in to change notification settings - Fork 668
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
[Codegen] Run LoopCoalescingPass at the end of warp reduce #19950
Conversation
This seems to improve batch norm dispatches. I observed (in a small bench) that it went from 80us to 60us. Signed-off-by: Ian Wood <[email protected]>
For reviewers:
It removes the outer loop with affine delinearize (apart from normalizing the loops).
|
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.
LGTM! Please make sure onnx-test-suite passes.
Let's land this. Maybe try onnx suite to be sure, by this seems harmless enough. If we have issues we can always revert |
Okay, I'll run the onnx tests first. workflow here: https://github.com/nod-ai/SHARK-TestSuite/actions/runs/13257180035 |
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.
Could we have a LIT test for this?
Any suggestions on where to add a test? should it be added to https://github.com/iree-org/iree/blob/main/compiler/src/iree/compiler/Codegen/LLVMGPU/test/reduction_pipeline_rocm.mlir? |
That would be the place. |
34f9237
to
11a8538
Compare
Signed-off-by: Ian Wood <[email protected]>
…19950) I observed that this improved some of the punet dispatches using warp reduction from 80us to 60us ([example](https://gist.github.com/IanWood1/5b0e4fcb4e90a02525b94ea4347145f5)). However, I'm not seeing the improvement through the noise of CI. Locally, I saw ~0.7ms improvement to punet. --------- Signed-off-by: Ian Wood <[email protected]>
I observed that this improved some of the punet dispatches using warp reduction from 80us to 60us (example). However, I'm not seeing the improvement through the noise of CI. Locally, I saw ~0.7ms improvement to punet.