Skip to content

[spirv] Disentangle patterns in SPIRV*ToGPUPass - #6658

Merged
antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:spirv-wgmem-cp
Aug 5, 2021
Merged

antiagainst merged 1 commit into
iree-org:mainfrom
antiagainst:spirv-wgmem-cp

Conversation

@antiagainst

Copy link
Copy Markdown
Member

This is another step towards cleaning up the SPIRVConvertToGPUPass
after #5814. We still have two
sets of patterns in the pass, one for handling copying to workgroup
memory, the other for tiling into global invocation IDs. These are
relatively disjoint functionalities; both should be cleaned up in
their own ways. So this commit is a prelimiary step towards that
by shuffling code around to their proper places and properly naming
stuff. This makes it clear for future dedicated improvements
afterwards in following up commits.

Along the way, this also cleans up the SPIRVVectorToGPU pass, which
uses utilities from the SPIRVConvertToGPU pass. SPIRVVectorToGPUPass
really just contains one pattern to handle copying to workgroup
memory (with vectorization). So renaming it properly. Again,
futher cleanup will be done in following up patches.

This commit is NFC (just shuffling code around), except that the
test for vectorized workgroup memory copy is disabled for now
to make migration easier.

This is another step towards cleaning up the SPIRVConvertToGPUPass
after iree-org#5814. We still have two
sets of patterns in the pass, one for handling copying to workgroup
memory, the other for tiling into global invocation IDs. These are
relatively disjoint functionalities; both should be cleaned up in
their own ways. So this commit is a prelimiary step towards that
by shuffling code around to their proper places and properly naming
stuff. This makes it clear for future dedicated improvements
afterwards in following up commits.

Along the way, this also cleans up the SPIRVVectorToGPU pass, which
uses utilities from the SPIRVConvertToGPU pass. SPIRVVectorToGPUPass
really just contains one pattern to handle copying to workgroup
memory (with vectorization). So renaming it properly. Again,
futher cleanup will be done in following up patches.

This commit is NFC (just shuffling code around), except that the
test for vectorized workgroup memory copy is disabled for now
to make migration easier.
@antiagainst

Copy link
Copy Markdown
Member Author

@MaheshRavishankar: I believe after this ConvertToGPUPass will be in a ready state (only have MapLinalgOpToGlobalInvocationId patterns) for you to entirely remove.

@antiagainst antiagainst added cleanup 🧹 codegen/spirv SPIR-V code generation compiler backend labels Aug 5, 2021
@antiagainst
antiagainst merged commit 45e5776 into iree-org:main Aug 5, 2021
@antiagainst
antiagainst deleted the spirv-wgmem-cp branch August 5, 2021 17:40
@NatashaKnk NatashaKnk mentioned this pull request Aug 6, 2021
@ThomasRaoux ThomasRaoux mentioned this pull request Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 codegen/spirv SPIR-V code generation compiler backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants