Skip to content

[spirv] Push GPU target conversion to before SPIR-V conversion - #17816

Merged
antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:spirv-target-pushdown
Jul 13, 2024
Merged

antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:spirv-target-pushdown

Conversation

@antiagainst

@antiagainst antiagainst commented Jul 5, 2024 •

Copy link
Copy Markdown
Member

This commit moves the SPIRVConvertGPUTargetPass to right before the ConvertToSPIRVPass in the pipeline. This makes sure we use the same #iree_gpu.target in the majority of the configuration and lowering passes in the CodeGen flow, and scopes the SPIR-V target environment to only the final SPIR-V conversion. With this, we are able to unify and simplify lots of SPIR-V tests.

Progress towards #16341

ci-extra: test_nvidia_gpu,test_nvidia_a100,test_amd_mi250,test_amd_w7900,build_test_all_macos_arm64,build_and_test_android

@antiagainst antiagainst added the codegen/spirv SPIR-V code generation compiler backend label Jul 5, 2024
This commit moves the `SPIRVConvertGPUTargetPass` to right before
the `ConvertToSPIRVPass` in the pipeline. This makes sure we use
the same `#iree_gpu.target` in the majority of the configuration
and lowering passes in the CodeGen flow, and scopes the SPIR-V
target environment to only the final SPIR-V conversion. With this,
we are able to unify and simplify lots of SPIR-V tests.

Signed-off-by: Lei Zhang <[email protected]>
@antiagainst
antiagainst force-pushed the spirv-target-pushdown branch from 1eb71c0 to 619be9b Compare July 5, 2024 21:18
@antiagainst
antiagainst marked this pull request as ready for review July 9, 2024 05:54

@kuhar kuhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup

@antiagainst antiagainst added benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU labels Jul 13, 2024
@antiagainst
antiagainst merged commit 9d6b425 into iree-org:main Jul 13, 2024
@antiagainst
antiagainst deleted the spirv-target-pushdown branch July 13, 2024 16:54
LLITCHEV pushed a commit to LLITCHEV/iree that referenced this pull request Jul 30, 2024
…org#17816)

This commit moves the `SPIRVConvertGPUTargetPass` to right before the
`ConvertToSPIRVPass` in the pipeline. This makes sure we use the same
`#iree_gpu.target` in the majority of the configuration and lowering
passes in the CodeGen flow, and scopes the SPIR-V target environment to
only the final SPIR-V conversion. With this, we are able to unify and
simplify lots of SPIR-V tests.

Progress towards iree-org#16341

ci-extra:
test_nvidia_gpu,test_nvidia_a100,test_amd_mi250,test_amd_w7900,build_test_all_macos_arm64,build_and_test_android

---------

Signed-off-by: Lei Zhang <[email protected]>
Signed-off-by: Lubo Litchev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks:android-gpu Run default Android GPU benchmarks benchmarks:vulkan-nvidia Run default Vulkan benchmarks on NVIDIA GPU codegen/spirv SPIR-V code generation compiler backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants