-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XLA:GPU] Build a workaround to fix tiling propagation for Triton whe…
…n tile sizes are not set to be a power of two. Because we currently have cases when tile sizes are not set to be a power of two (e.g. when capturing the full dimension at the output, or when introducing a non-power-of-two contracting dimension in the middle of tiling propagation), we can get into issues with `reshape`s. Previously to this change, we would verify that constraints coming out of a `reshape` are satisfied by a tuple of exact tile sizes, but later pad these tile sizes at code generation time---making the lowering of the `reshape` incorrect. The proper fix for this issue would be to always propagate tile sizes that are a power of 2 in fusions that will be code generated using Triton. Alas, this is easier said than done, and requires introducing a principled way of tiling along newly introduced contracting dimensions. We already know how we intend to solve this, but it'll take a while. For this reason, we instead introduce here Triton-specific constraints aimed at weeding out improper tile sizes as they arise. PiperOrigin-RevId: 673977887
- Loading branch information
1 parent
29048bb
commit 4aee555
Showing
4 changed files
with
178 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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