Repository navigation
[Triton] Enable conv2d Triton kernels for gfx1100 (RDNA3) and gfx1151 (RDNA3.5) - #4265
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
There was a problem hiding this comment.
Pull request overview
This PR extends the Triton conv2d operator’s arch support on the RDNA side by adding tuned per-architecture JSON configs for gfx1100 (RDNA3) and gfx1151 (RDNA3.5), and updating the conv op-test arch allowlist accordingly.
Changes:
- Added gfx1100/gfx1151 to the conv Triton test suite’s supported-arch gate.
- Added per-arch tuned conv config JSONs for gfx1100 and gfx1151 across the conv kernel families (1x1, 3x3 NHWC, 3x3 cblocked, general, and Winograd F4x3 sub-kernels).
- Expanded the optional (env-var) Triton autotune config search spaces with additional smaller-tile options intended for gfx1100.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| op_tests/triton_tests/conv/_helpers.py | Adds gfx1100/gfx1151 to the RDNA supported-arch allowlist used to gate the conv test module. |
| aiter/ops/triton/_triton_kernels/conv/conv_general.py | Adds additional (optional) autotune triton.Config entries intended for gfx1100. |
| aiter/ops/triton/_triton_kernels/conv/conv_3x3.py | Adds additional (optional) autotune triton.Config entries intended for gfx1100 for 3x3 kernels. |
| aiter/ops/triton/_triton_kernels/conv/conv_3x3_winograd_f4x3.py | Adds additional (optional) autotune triton.Config entries intended for gfx1100 for Winograd kernels. |
| aiter/ops/triton/_triton_kernels/conv/conv_1x1.py | Adds additional (optional) autotune triton.Config entries intended for gfx1100 for 1x1 conv. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-WINO-F4X3-OUTPUT.json | Adds gfx1151 tuned config for Winograd output-transform kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-WINO-F4X3-INPUT.json | Adds gfx1151 tuned config for Winograd input-transform kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-WINO-F4X3-GEMM.json | Adds gfx1151 tuned config for Winograd batched GEMM kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-GENERAL.json | Adds gfx1151 tuned config for the general conv kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-3X3-NHWC.json | Adds gfx1151 tuned config for the 3x3 NHWC kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-3X3-CBLOCKED.json | Adds gfx1151 tuned config for the 3x3 cblocked kernel. |
| aiter/ops/triton/configs/conv/gfx1151-CONV-1X1.json | Adds gfx1151 tuned config for the 1x1 kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-WINO-F4X3-OUTPUT.json | Adds gfx1100 tuned config for Winograd output-transform kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-WINO-F4X3-INPUT.json | Adds gfx1100 tuned config for Winograd input-transform kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-WINO-F4X3-GEMM.json | Adds gfx1100 tuned config for Winograd batched GEMM kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-GENERAL.json | Adds gfx1100 tuned config for the general conv kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-3X3-NHWC.json | Adds gfx1100 tuned config for the 3x3 NHWC kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-3X3-CBLOCKED.json | Adds gfx1100 tuned config for the 3x3 cblocked kernel. |
| aiter/ops/triton/configs/conv/gfx1100-CONV-1X1.json | Adds gfx1100 tuned config for the 1x1 kernel. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@saeid-rostami Given all file changes related to arch specific configs, I dont see any issues with the PR. Approved! It also needs an approval from someone in ROCm/team_aiter list. @azaidy @vgokhale |
f36db2d to
0122717
Compare
Motivation
Extends the Triton conv2d operator to two more RDNA targets:
Previously the conv2d path only recognized RDNA4 (gfx1200/gfx1201) on the RDNA
side. This PR adds the two arches to the supported set and ships per-arch tuned
config JSONs for all five conv2d kernels, so both GPUs get shape-appropriate
tile configs instead of falling through / being rejected.
Technical Details
Test Plan
Test Result
Submission Checklist