-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLVMGPUVectorDistribute] Support vector.mask + vector.contract
This commit primariy adds support to distribute masked vector.contract. Firstly, it changes the VectorLayoutInference to propogate the layouts from contract operands into the contraction mask. In order to do this, a new builder is added to the NestedLayoutAttr which can extract and concat from operand layouts using the indexing maps of the vector.contract. Secondly, in the distribution, the distributed mask is projected onto the operands to perform a selection between the original operand and reduction identity to cater for non thread-local contraction. Moreover, the distributed mask is applied to the thread-local contraction. Signed-off-by: Manupa Karunaratne <[email protected]>
- Loading branch information
Showing
5 changed files
with
237 additions
and
12 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