Repository navigation
[Codegen] Replace LLVMGPUVectorize with LLVMGPUTileAndFuse for supported cases - #18474
Conversation
931f7da to
056fcf2
Compare
056fcf2 to
a6640ef
Compare
6b2ce9b to
56caa6a
Compare
03e0943 to
f2204d2
Compare
f2204d2 to
b1a9551
Compare
| }) | ||
| .Default([&](auto op) { | ||
| LDBG("Default Config"); | ||
| if (!clUseLLVMGPUVectorizePipeline) { |
There was a problem hiding this comment.
nit: clUseLLVMGPUVectorizePipeline -> clLLVMGPUUseLegacyDefaultPipeline
| funcPassManager.addPass(createGPUApplyTilingLevelPass(options)); | ||
| } | ||
| funcPassManager.addPass(IREE::GPU::createDistributeMmaToLanesPass()); | ||
| funcPassManager.addPass(createConvertToDestinationPassingStylePass( |
There was a problem hiding this comment.
Do we need this here? Even if we want this, this is running pretty late.
b1a9551 to
41a3b1e
Compare
41a3b1e to
13b0f1c
Compare
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Left a comment on flag name, but looks good otherwise.
37f9d38 to
5a98d83
Compare
|
@qedawkins, I just came across this PR. It's necessary for enabling scf.forall distribution for the entire GPU pipeline. Thanks. |
|
Yeah this PR is still in progress. There are numerics issues related to the AMDGPU backend that are being worked out (also this depends on: #19010 ) |
5a98d83 to
435c628
Compare
|
So there are finally more progressions than regressions in the model suite, however most of the regressions are numerics: https://github.com/nod-ai/e2eshark-reports/blob/main/2024-11-07-iree-test/ci_reports_onnx/rocm/combined-reports/yesterday_comparison.md I'm going to land this because it has started to pile up dependent work and fix forward as many of the remaining correctness issues as possible. As a follow up I plan to add a few |
…ted cases The plan is to deprecate the LLVMGPUVectorize pipeline as it is no longer maintained. This patch is the first step towards deprecating it. The pipeline is still used by default for convolutions (if LLVMGPUVectorDistribute does not pick it up). 1) (this) Replace default use cases of LLVMGPUVectorize with LLVMGPUTileAndFuse. 2) Replace convolution focused uses of LLVMGPUVectorize. 3) Separate out the lowering config logic for pre-bufferized dispatches (that targets LLVMGPUBaseDistribute). 4) Delete the vectorize pipeline.
435c628 to
f790a84
Compare
…ted cases (iree-org#18474) The plan is to deprecate the LLVMGPUVectorize pipeline as it is no longer maintained. This patch is the first step towards deprecating it. The pipeline is still used by default for convolutions (if LLVMGPUVectorDistribute does not pick it up). 1) (this) Replace default use cases of LLVMGPUVectorize with LLVMGPUTileAndFuse. 2) Replace convolution focused uses of LLVMGPUVectorize. 3) Separate out the lowering config logic for pre-bufferized dispatches (that targets LLVMGPUBaseDistribute). 4) Delete the vectorize pipeline.
…ted cases (iree-org#18474) The plan is to deprecate the LLVMGPUVectorize pipeline as it is no longer maintained. This patch is the first step towards deprecating it. The pipeline is still used by default for convolutions (if LLVMGPUVectorDistribute does not pick it up). 1) (this) Replace default use cases of LLVMGPUVectorize with LLVMGPUTileAndFuse. 2) Replace convolution focused uses of LLVMGPUVectorize. 3) Separate out the lowering config logic for pre-bufferized dispatches (that targets LLVMGPUBaseDistribute). 4) Delete the vectorize pipeline. Signed-off-by: Giacomo Serafini <[email protected]>
The plan is to deprecate the LLVMGPUVectorize pipeline as it is no
longer maintained. This patch is the first step towards deprecating it.
The pipeline is still used by default for convolutions (if
LLVMGPUVectorDistribute does not pick it up).
LLVMGPUTileAndFuse.
(that targets LLVMGPUBaseDistribute).
Depends on #18679