Commit 450be22
PR #33671: fix(Triton/ROCm): Add missing createTritonGPUAllocateWarpGroups pass to pipeline
Imported from GitHub PR #33671
This PR fixes the Triton compilation pipeline for ROCm by adding the `createTritonGPUAllocateWarpGroups` pass, which was missing.
This pass is necessary for the `ExtractThreadDims` function to work correctly during code generation. It adds the `ttg.total-num-warps` attribute to the MLIR module, which is later consumed in `emitter_helpers.cc`. Without this pass, the compilation fails when trying to extract thread dimensions.
c/ @khasanovaa @chsigg @AleksaArsic
Copybara import of the project:
--
3f9c437 by Hugo Mano <[email protected]>:
fix(Triton/ROCm): Add missing createTritonGPUAllocateWarpGroups pass to pipeline
--
4ec8907 by Hugo Mano <[email protected]>:
format
Merging this change closes #33671
COPYBARA_INTEGRATE_REVIEW=#33671 from hugomano:hugomano/fix-rocm-triton-compilation-pipeline 4ec8907
PiperOrigin-RevId: 8294738851 parent e07b779 commit 450be22
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
0 commit comments