Skip to content

[Triton] Enable conv2d Triton kernels for gfx1100 (RDNA3) and gfx1151 (RDNA3.5) - #4265

Merged
saeid-rostami merged 2 commits into
ROCm:mainfrom
saeid-rostami:conv2d-gfx1100-gfx1151
Aug 5, 2026
Merged

saeid-rostami merged 2 commits into
ROCm:mainfrom
saeid-rostami:conv2d-gfx1100-gfx1151

Conversation

@saeid-rostami

Copy link
Copy Markdown
Contributor

Motivation

Extends the Triton conv2d operator to two more RDNA targets:

  • gfx1100 — RDNA3
  • gfx1151 — RDNA3.5

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

@saeid-rostami
saeid-rostami requested review from a team and Copilot July 16, 2026 15:29
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 4265 --add-label <label>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@cagrikymk
cagrikymk self-requested a review July 16, 2026 15:51
cagrikymk
cagrikymk previously approved these changes Jul 23, 2026
@cagrikymk

Copy link
Copy Markdown
Contributor

@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

@zufayu
zufayu requested a review from vgokhale August 5, 2026 02:48
vgokhale
vgokhale previously approved these changes Aug 5, 2026
@saeid-rostami
saeid-rostami dismissed stale reviews from vgokhale and cagrikymk via 0122717 August 5, 2026 15:01
@saeid-rostami
saeid-rostami force-pushed the conv2d-gfx1100-gfx1151 branch from f36db2d to 0122717 Compare August 5, 2026 15:01
@saeid-rostami
saeid-rostami merged commit 2a7c1b1 into ROCm:main Aug 5, 2026
143 of 160 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants