-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add verifier for triton_gpu.blocked layout. (#2622)
Add verifier for triton_gpu.blocked layout. Checks that: - The rank of the layout matches the rank of the tensor it's applied to. - The tensor's threads-per-warp, warps-per-cta, and ctas-per-cga all match the module. - The layout's rank is self-consistent. - The layout's `order` and `CTAOrder` fields are permutations of 0..(rank-1). Unfortunately it seems we cannot unittest the verifiers on the attributes themselves. When one of these verifiers fails, we get an assert() failure. 🤷 Many lit tests ran afoul of this verifier. I fixed most of them manually, but I decided to delete some large tests (apparently generated code) that had many issues, on the theory that the cost-benefit tradeoff of fixing these by hand was unfavorable. (Indeed in many cases it wasn't clear what the test was intending to check, so I couldn't be sure that I wasn't rendering the test useless with my changes.)
- Loading branch information
Showing
21 changed files
with
556 additions
and
187 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
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
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
Oops, something went wrong.
CTAsPerCGA
It would be nice to have the actual values in the error string too.