Skip to content

[Triton/Gluon] [Config] Tune the gfx1150 gemm_a16w16 DEFAULT.json - #7030

Merged
Boss2002n merged 3 commits into
mainfrom
amd/dev/klin/triton-gfx1150-gemm-a16w16-config
Nov 27, 2026
Merged

Boss2002n merged 3 commits into
mainfrom
amd/dev/klin/triton-gfx1150-gemm-a16w16-config

Conversation

@klin-amd

@klin-amd klin-amd commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The gfx1150 gemm_a16w16/DEFAULT.json is a seed. This PR replaces it with measured values. It changes one file. It changes no code.

aiter/ops/triton/configs/gfx1150/triton/gemm/gemm_a16w16/DEFAULT.json
Bucket Tile (M x N x K) Warps
M_LEQ_64 32 x 16 x 256 2
M_LEQ_256 64 x 64 x 64 2
M_LEQ_512 128 x 64 x 64 4
any 128 x 128 x 64 4

All buckets use GROUP_SIZE_M 1, num_stages 2, waves_per_eu 1, matrix_instr_nonkdim 16, cache_modifier null and NUM_KSPLIT 1. These are the keys of the family, as configs/AGENTS.md requires.

Motivation

The gfx1150 file on main is a seed, and not a copy of a measured file. When 3da9a8d (#5997) added it, main had no gfx1151 gemm_a16w16 file. That commit says so: "Copy the gfx1151 table proposed in #4814 (head df9d0a8) byte-identical to gfx1150". #4814 never merged. The measured gfx1151 file arrived later, in #6671. configs/AGENTS.md asks for measured values in place of a seed.

The seed gives the same 32 x 16 x 256 tile to all M from 1 to 256. That tile is correct for M of 64 and below. Above 64 a larger tile is faster: the three M = 256 shapes give 2.34x, 2.41x and 2.67x. This PR does not establish the mechanism.

Relation to the gfx1151 file

Three of the four tiles have the values #6671 added to gfx1151:

Bucket gfx1151 (#6671) this PR (gfx1150)
M_LEQ_64 32 x 16 x 256, 2 warps 32 x 16 x 256, 2 warps same
M_LEQ_256 64 x 64 x 128, 4 warps 64 x 64 x 64, 2 warps different tile
M_LEQ_1024 / M_LEQ_512 128 x 64 x 64, 4 warps 128 x 64 x 64, 4 warps same tile, different limit
any 128 x 128 x 64, 4 warps 128 x 128 x 64, 4 warps same

The search changed the tile in two M ranges only: 64 < M <= 256, and 512 < M <= 1024 through the new limit at 512. Elsewhere it confirmed the gfx1151 values. Of the 45 shapes below, 23 take the same tile from either file.

Changes

  • Replace the gfx1150 gemm_a16w16/DEFAULT.json.
  • Split M <= 256 into M_LEQ_64 and M_LEQ_256.
  • Lower the M_LEQ_1024 bound to 512 and retune that bucket and any.
  • Remove the .cg cache modifier and set waves_per_eu to 1 in any.

STANDARD_M_BOUNDS contains 64 and 512, so get_gemm_config() selects the new keys. The file sets no M_BOUNDS, and the kernel passes no bounds.

Performance

Hardware Workload/configuration Before After Change
Radeon 880M (gfx1150, 12 CU) gemm_a16w16, bf16, bias, no activation, layout TN, 45 shapes 3.13 TFLOPS geomean 4.88 TFLOPS geomean 1.56x

Measured with this repository's own bench_gemm_a16w16.py, on torch 2.14.0+rocm10.1.0 and Triton 3.8.0. One shape is one invocation of:

python op_tests/op_benchmarks/triton/bench_gemm_a16w16.py \
  --shape M N K --metric throughput --layout TN --backend triton \
  --graph-kernels-per-graph <see below>

Every TFLOPS number below is the output of that command. The benchmark computes it in bench_gemm_fn at the base commit 66c8630: flops = 2.0 * M * N * K, then tflops = flops / ms * 1e-9, where ms is the mean per-kernel latency from do_bench_aiter_triton — a rotating-buffer CUDA-graph benchmark, not a timing loop written for this PR. Its inputs come from the unit test's own generate_gemm_a16w16_inputs. Note that main has since replaced do_bench_aiter_triton with RotatingBufferBench.

Per shape, main and this PR ran back to back with DEFAULT.json exchanged, over 3 runs; each number is the median of the 3. No shape was dropped for instability: the largest spread of a ratio across the 3 runs is 4.0%.

One setting is not the default. --graph-kernels-per-graph was set per shape to max(4, ceil(256 MB / per-set bytes)), and not to the default 1000. The default needs about 27 minutes for one measurement of the largest shape. In this tree that flag cannot shrink the rotating pool, because the pool size comes from --rot-bufs-target-mb and the benchmark captures max(kernels_per_graph, pool_len) calls. The chosen value is exactly pool_len, so each graph makes one pass over the whole pool. On main the flag does cap the pool, so this method does not carry over unchanged.

A check against the default on 6 shapes gave a median difference of 0.8% and a largest of 5.6%. That check was one run against a median of 3, so it cannot separate the setting from run-to-run noise. The 5.6% shape is 600 x 1152 x 1152, which measures 2.76x here and 2.60x at the default.

Bandwidth and roofline are not reported. This PR changes no kernel code, so there is no new kernel to put on a roofline. --metric bandwidth gives bandwidth per shape for anyone who wants it.

M range Bucket Shapes Geomean this PR / main Range
M <= 64 M_LEQ_64 7 1.00x 0.98x-1.01x (same tile)
64 < M <= 256 M_LEQ_256 6 2.15x 1.70x-2.67x
256 < M <= 512 M_LEQ_512 4 1.61x 1.32x-2.33x
512 < M <= 1024 any 16 1.73x 0.94x-3.73x
M > 1024 any 12 1.47x 0.89x-1.88x
all 45 1.56x 0.89x-3.73x

512 is the largest M_LEQ_ key in the file, so any serves every M above 512. The last two rows together are 28 shapes at geomean 1.61x. The table splits them at 1024 to show that the gain falls at the largest M.

The 7 shapes with M of 64 and below resolve to an identical config from both files, so their true ratio is 1.00x. They measure 0.98x-1.01x, geomean 1.000x. That is the control. It bounds the error of a median of 3 runs at about 2%, and single runs are wider: the raw control ratios span 0.966x to 1.025x. One control shape, 16 x 4096 x 14336, is low in all 3 runs (0.98x), which looks like a small systematic bias rather than noise.

Two shapes whose tile changed are slower than main in all 3 runs:

M N K main this PR ratio (median) ratio (range)
768 1536 1536 5.12 4.79 0.94x 0.94x-0.94x
32760 8960 1536 6.17 5.51 0.89x 0.88x-0.90x

Both have a small K of 1536. DEFAULT.json selects by M only, so one tile serves every N and K in a bucket; a GEMM-A16W16-N=...-K=...json file can fix them.

All 45 shapes. The two TFLOPS columns are the median of the 3 per-run values; `ratio` is the median of the 3 per-run ratios, so it does not always divide out of the two columns; `spread` is (max - min) / min of the 3 per-run ratios.
M N K tile main tile this PR main this PR ratio spread
1 128 2880 32x16x256 w2 32x16x256 w2 0.03 0.03 1.00x 1.5%
1 4096 4096 32x16x256 w2 32x16x256 w2 0.10 0.10 1.00x 1.0%
16 4096 14336 32x16x256 w2 32x16x256 w2 1.41 1.38 0.98x 1.3%
32 2880 4096 32x16x256 w2 32x16x256 w2 2.78 2.78 1.00x 0.4%
64 256 7168 32x16x256 w2 32x16x256 w2 2.28 2.29 1.00x 4.0%
64 4096 4096 32x16x256 w2 32x16x256 w2 4.15 4.20 1.01x 1.9%
64 4096 14336 32x16x256 w2 32x16x256 w2 3.47 3.47 1.00x 3.1%
65 4096 4096 32x16x256 w2 64x64x64 w2 2.02 3.45 1.70x 0.7%
128 5120 2880 32x16x256 w2 64x64x64 w2 4.54 8.41 1.85x 0.9%
154 2432 2432 32x16x256 w2 64x64x64 w2 2.31 4.74 2.05x 0.8%
256 2880 4096 32x16x256 w2 64x64x64 w2 3.14 8.36 2.67x 0.5%
256 4096 4096 32x16x256 w2 64x64x64 w2 3.11 7.50 2.41x 1.1%
256 9728 2432 32x16x256 w2 64x64x64 w2 4.69 10.91 2.34x 1.3%
257 4096 4096 32x32x256 w4 128x64x64 w4 2.00 4.65 2.33x 0.9%
300 4096 4096 32x32x256 w4 128x64x64 w4 3.38 5.30 1.57x 0.4%
512 2880 4096 32x32x256 w4 128x64x64 w4 4.49 6.29 1.40x 0.5%
512 4096 4096 32x32x256 w4 128x64x64 w4 4.46 5.88 1.32x 2.2%
600 1152 1152 32x32x256 w4 128x128x64 w4 2.85 7.85 2.76x 0.4%
640 3072 768 32x32x256 w4 128x128x64 w4 4.94 5.35 1.08x 0.7%
666 2432 2432 32x32x256 w4 128x128x64 w4 2.15 8.02 3.73x 1.4%
666 7296 2432 32x32x256 w4 128x128x64 w4 2.14 7.27 3.40x 1.5%
666 9728 2432 32x32x256 w4 128x128x64 w4 2.15 7.77 3.62x 3.0%
768 1152 4608 32x32x256 w4 128x128x64 w4 4.24 4.89 1.15x 1.2%
768 1536 1536 32x32x256 w4 128x128x64 w4 5.12 4.79 0.94x 0.2%
800 2048 2048 32x32x256 w4 128x128x64 w4 2.36 4.47 1.89x 2.3%
896 1024 4096 32x32x256 w4 128x128x64 w4 4.14 4.81 1.16x 0.0%
1000 2432 2432 32x32x256 w4 128x128x64 w4 5.26 9.57 1.82x 0.4%
1024 256 7168 32x32x256 w4 128x128x64 w4 4.05 4.66 1.15x 0.6%
1024 1152 4608 32x32x256 w4 128x128x64 w4 4.22 6.10 1.45x 1.2%
1024 1536 8960 32x32x256 w4 128x128x64 w4 4.98 10.66 2.13x 0.6%
1024 3072 3072 32x32x256 w4 128x128x64 w4 4.85 6.26 1.28x 1.5%
1024 4096 4096 32x32x256 w4 128x128x64 w4 4.44 6.67 1.49x 1.5%
1024 4096 14336 32x32x256 w4 128x128x64 w4 4.21 6.85 1.63x 0.9%
2048 2432 2432 64x64x256 w4 128x128x64 w4 5.53 10.37 1.88x 0.4%
2048 4096 4096 64x64x256 w4 128x128x64 w4 4.38 6.90 1.57x 3.3%
2048 7296 2432 64x64x256 w4 128x128x64 w4 5.29 9.89 1.87x 1.3%
2048 9728 2432 64x64x256 w4 128x128x64 w4 5.12 8.83 1.71x 2.7%
2048 28672 4096 64x64x256 w4 128x128x64 w4 4.29 6.77 1.59x 1.4%
4096 4096 14336 64x64x256 w4 128x128x64 w4 3.96 6.86 1.73x 0.9%
4096 14336 4096 64x64x256 w4 128x128x64 w4 4.30 6.98 1.63x 1.9%
8192 1152 1152 64x64x256 w4 128x128x64 w4 6.77 9.77 1.44x 0.7%
8192 4096 4096 64x64x256 w4 128x128x64 w4 4.45 7.14 1.61x 2.6%
8192 4608 1152 64x64x256 w4 128x128x64 w4 6.39 7.22 1.13x 2.4%
32760 1536 1536 64x64x256 w4 128x128x64 w4 5.77 5.91 1.02x 1.0%
32760 8960 1536 64x64x256 w4 128x128x64 w4 6.17 5.51 0.89x 1.9%

Testing

  • Unit tests added or updated — none needed; existing tests cover this file.
  • Performance benchmarks run — see "Performance".
  • Tested on MI250X / MI300X — not applicable: gfx1150 only.

Test plan

On a gfx1150 host, first on main, then with this PR:

pytest op_tests/triton_tests/gemm/basic/test_gemm_a16w16.py \
  -k "triton and not persistent and not atomic"

Test result

Radeon 880M (gfx1150, 12 CU), torch 2.14.0+rocm10.1.0, Triton 3.8.0:

Tree Result
main (66c8630) 4 failed, 176 passed, 541 skipped, 300 deselected
this PR 4 failed, 176 passed, 541 skipped, 300 deselected

Of the 541 skips, 361 are Gluon, which gfx1150 does not support. The other 180 are triton-backend cases that skip because kernel_type applies only to Gluon. The Gluon cases are selected at all because -k matches the whole test id, and the path op_tests/triton_tests/ contains triton.

Both trees fail the same 4 tests, all test_gemm_a16_w16_layout[bandwidth_bound-triton-{NT,TT}-{256,4096}-106496-16384], with AssertionError: Tensor-likes are not close! (0.1% of elements, infinite relative difference) — not out of memory. They fail on main too, so this PR neither causes nor repairs them.

Documentation

  • Docstrings updated
  • User guide updated
  • Performance guide updated
  • No documentation change is needed — tuned values only; format, loader and key scheme are unchanged.

Dependencies

  • No new third-party dependencies added

Breaking Changes

None. Only the selected tile changes, and only on gfx1150.

Not in this PR

  • GEMM-A16W16-N=...-K=...json files for gfx1150, which can fix the 2 slower shapes.
  • The persistent and atomic variants, which read their own config families.
  • The two fused ops that read this table. See below.
  • gfx1151, which keeps its current file.

PR Self-Review

Reviewed revision

9c5c025

Behavior and intent

On gfx1150, gemm_a16w16 selects a different tile for every M above 64. At 64 and below it is unchanged, and no other arch is affected. The current file is an unmeasured seed. Of the 38 measured shapes above M 64, this PR is faster on 35, slower on 2, and within the 2% control band on 1 (32760 x 1536 x 1536, 1.02x). The largest gain is 3.73x.

Validation and unverified scope

Validated. The diff is 1 file, +22/-10. get_gemm_config() was called for all 45 shapes with each file. It resolved to gfx1150 and returned the tiles in the tables above, including the full config for the 7 control shapes, which is identical from both files. Performance is 3 runs with the repository's own bench_gemm_a16w16.py. Correctness is the pytest results above.

git log on this path gives one gfx1150 commit, 3da9a8d (#5997). At that commit no gfx1151 gemm_a16w16 file existed, and the commit message names #4814 as the source. By blob hash, this PR's first commit is byte identical to #6671's gfx1151 file. The head differs from it in one tile and one limit.

Unverified:

  • One gfx1150 part only. The numbers are from a Radeon 880M (12 CU). gfx1150 covers more than one SKU and CU count, and every one of them reads this single file, so another gfx1150 part can rank two tiles differently. The part the search ran on was not measured here.
  • The tile search is not reproduced. The candidate grid, scores and limits come from the author's search. This review measured the chosen file against main, not the rejected tiles, so no tile is confirmed best in its bucket.
  • The first commit is not measured separately. The 1.56x is against the main seed, but the first commit is byte identical to the gfx1151 file, so a plain copy would already give part of it.
  • Three parameters change together in any. BLOCK_SIZE_M/N/K, cache_modifier and waves_per_eu all change in that bucket. The measurement compares the bucket as one unit. It does not isolate the contribution of the cache modifier or of waves_per_eu.
  • One benchmark setting is not the default. --graph-kernels-per-graph is per shape. Its effect was checked on 6 shapes only, in one run against a median of 3, so it is bounded but not isolated from noise.
  • Other readers of this table. fused_gemm_a16w16_mul_add.py and fused_gemm_a16w16_quant_x.py read GEMM-A16W16 too, so their tiles change on gfx1150. Neither was measured. op_benchmarks/triton/bench_moe_gemm_a8w8_blockscale.py also reads it, but it is a benchmark and ships nothing.

PR-specific question

Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?

The keys are the four M buckets of this one file: M_LEQ_64, M_LEQ_256, M_LEQ_512 and any in configs/gfx1150/triton/gemm/gemm_a16w16/DEFAULT.json. One caller consumes them in the shipped path, _triton_kernels/gemm/basic/gemm_a16w16.py:189, through get_gemm_config("GEMM-A16W16", M, N, K, backend="triton"). The two fused ops named above read the same name and therefore the same keys. Selection is by M alone: the folder holds no GEMM-A16W16-N=...-K=...json, so no shape has a per-shape entry, and is_tuned is False for every M.

Three scopes bound the change. The file is below configs/gfx1150/, and resolve_config_dir() keys on gcnArchName, so no other arch reads it. The Gluon path passes backend="gluon" and reads a different tree. The persistent and atomic variants read GEMM-A16W16-PERSISTENT and GEMM-A16W16-ATOMIC, which this PR does not touch.

Inside the one scope that does change, the evidence is a direct comparison. get_gemm_config() was called for all 45 shapes against the main file and against this file, and the two results were compared field by field. The 7 shapes with M of 64 and below return an identical config from both files, covering every key of the family and not only the tile, so their selection is unchanged; they then measure 1.00x, which is the control. Every shape above M 64 returns a different config, which is the intent of the PR. The bucket bounds 64, 256 and 512 all come from STANDARD_M_BOUNDS, and the file sets no M_BOUNDS, so the loader walks the same bounds as before and no bucket boundary moves for a shape outside the ranges listed in "Changes".

Changed op tests

None. No file below op_tests/ changes.

🤖 Generated with Claude Code

@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:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
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: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
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 7030 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@klin-amd klin-amd changed the title [Triton/Gluon] [Config] Use the gfx1151 gemm_a16w16 DEFAULT.json on gfx1150 [Triton/Gluon] [Config] Tune the gfx1150 gemm_a16w16 DEFAULT.json Oct 28, 2026
@menglcai-amd
menglcai-amd marked this pull request as ready for review November 6, 2026 08:51
@menglcai-amd
menglcai-amd requested review from a team and a balanced review from Copilot November 6, 2026 08:51
@aiter-bot

aiter-bot commented Nov 6, 2026 •

Copy link
Copy Markdown

READY FOR HUMAN REVIEW

PR Self-Review

Revision 9c5c02561140 · mode shadow

Author self-review accepted. Readiness report:

Author answers

  • PASS — current-SHA answers are present and structurally specific
Show the author's self-review answers

Behavior and intent

On gfx1150, `gemm_a16w16` selects a different tile for every M above 64. At 64 and below it is unchanged, and no other arch is affected. The current file is an unmeasured seed. Of the 38 measured shapes above M 64, this PR is faster on 35, slower on 2, and within the 2% control band on 1 (`32760 x 1536 x 1536`, 1.02x). The largest gain is 3.73x.

Validation and unverified scope

Validated. The diff is 1 file, +22/-10. `get_gemm_config()` was called for all 45 shapes with each file. It resolved to `gfx1150` and returned the tiles in the tables above, including the full config for the 7 control shapes, which is identical from both files. Performance is 3 runs with the repository's own `bench_gemm_a16w16.py`. Correctness is the pytest results above.

`git log` on this path gives one gfx1150 commit, 3da9a8d4 (#5997). At that commit no gfx1151 `gemm_a16w16` file existed, and the commit message names #4814 as the source. By blob hash, this PR's first commit is byte identical to #6671's gfx1151 file. The head differs from it in one tile and one limit.

Unverified:

- **One gfx1150 part only.** The numbers are from a Radeon **880M** (12 CU). `gfx1150` covers more than one SKU and CU count, and every one of them reads this single file, so another gfx1150 part can rank two tiles differently. The part the search ran on was not measured here.
- **The tile search is not reproduced.** The candidate grid, scores and limits come from the author's search. This review measured the chosen file against `main`, not the rejected tiles, so no tile is confirmed best in its bucket.
- **The first commit is not measured separately.** The 1.56x is against the `main` seed, but the first commit is byte identical to the gfx1151 file, so a plain copy would already give part of it.
- **Three parameters change together in `any`.** `BLOCK_SIZE_M/N/K`, `cache_modifier` and `waves_per_eu` all change in that bucket. The measurement compares the bucket as one unit. It does not isolate the contribution of the cache modifier or of `waves_per_eu`.
- **One benchmark setting is not the default.** `--graph-kernels-per-graph` is per shape. Its effect was checked on 6 shapes only, in one run against a median of 3, so it is bounded but not isolated from noise.
- **Other readers of this table.** `fused_gemm_a16w16_mul_add.py` and `fused_gemm_a16w16_quant_x.py` read `GEMM-A16W16` too, so their tiles change on gfx1150. Neither was measured. `op_benchmarks/triton/bench_moe_gemm_a8w8_blockscale.py` also reads it, but it is a benchmark and ships nothing.

PR-specific question

*Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?*

The keys are the four M buckets of this one file: `M_LEQ_64`, `M_LEQ_256`, `M_LEQ_512` and `any` in `configs/gfx1150/triton/gemm/gemm_a16w16/DEFAULT.json`. One caller consumes them in the shipped path, `_triton_kernels/gemm/basic/gemm_a16w16.py:189`, through `get_gemm_config("GEMM-A16W16", M, N, K, backend="triton")`. The two fused ops named above read the same name and therefore the same keys. Selection is by M alone: the folder holds no `GEMM-A16W16-N=...-K=...json`, so no shape has a per-shape entry, and `is_tuned` is `False` for every M.

Three scopes bound the change. The file is below `configs/gfx1150/`, and `resolve_config_dir()` keys on `gcnArchName`, so no other arch reads it. The Gluon path passes `backend="gluon"` and reads a different tree. The persistent and atomic variants read `GEMM-A16W16-PERSISTENT` and `GEMM-A16W16-ATOMIC`, which this PR does not touch.

Inside the one scope that does change, the evidence is a direct comparison. `get_gemm_config()` was called for all 45 shapes against the `main` file and against this file, and the two results were compared field by field. The 7 shapes with M of 64 and below return an identical config from both files, covering every key of the family and not only the tile, so their selection is unchanged; they then measure 1.00x, which is the control. Every shape above M 64 returns a different config, which is the intent of the PR. The bucket bounds 64, 256 and 512 all come from `STANDARD_M_BOUNDS`, and the file sets no `M_BOUNDS`, so the loader walks the same bounds as before and no bucket boundary moves for a shape outside the ranges listed in "Changes".

Changed op tests

None. No file below `op_tests/` changes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

PR state

  • PASS — pull request is marked ready for review

Copilot findings

  • PASS — no active Copilot finding lacks a substantive author reply
  • ADVISORY — Copilot did not review the current head SHA

Code and op-test hygiene

  • PASS — no committed artifact or conflict marker detected

Required CI

  • PASS — Black: passed
  • PASS — Ruff: passed
  • PASS — Repository dependency: passed
  • PASS — Aiter Test Gate: passed

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

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.

🔵 Needs a closer look

The shared gfx1150 defaults affect two unmeasured fused GEMM paths, requiring maintainer review of correctness and performance validation that cannot run in this environment.

No open issues 🎉

What changed in this PR

Replaces the gfx1150 gemm_a16w16 seed configuration with measured tuning values, without changing kernel code or public APIs. The reported benchmark shows a 1.56× geometric-mean throughput gain across 45 shapes, with two shape regressions.

Changes:

  • Preserves the existing tile for M ≤ 64 and adds a retuned M ≤ 256 bucket.
  • Lowers the middle bucket limit from 1024 to 512 and updates larger-M tiles.
  • Removes the fallback .cg cache modifier and reduces waves_per_eu to 1.
File Description
aiter/​ops/​triton/​configs/​gfx1150/​triton/​gemm/​gemm_a16w16/​DEFAULT.json Retunes gfx1150 GEMM default tiles, bucket limits, and launch settings.

Review effort: Balanced

@zufayu
zufayu requested review from a team and Boss2002n November 7, 2026 06:49
klin-amd and others added 2 commits November 8, 2026 18:13
…fx1150

The gfx1150 file has the values that #5997 copied from gfx1151. #6671
then replaced the gfx1151 values for M > 64, but not the gfx1150 values.
This copies the current gfx1151 file to gfx1150.

On gfx1150 (Radeon 890M), bf16 + bias, 37 shapes: geomean 1.59x faster
than main; 36 of 37 shapes are the same or faster.

Co-Authored-By: Claude <[email protected]>
…0 search

A tile search on gfx1150 (Radeon 890M) replaced the copied gfx1151 values:
- M_LEQ_256: 64x64x64, 2 warps (was 64x64x128, 4 warps).
- Split M_LEQ_1024 at 512: M_LEQ_512 keeps 128x64x64; 512 < M <= 1024
  uses the any tile, 128x128x64.

Against main, 45 shapes: geomean 1.62x; 2 shapes are slower
(768x1536x1536 0.88x, 640x3072x768 0.98x).

Co-Authored-By: Claude <[email protected]>
@menglcai-amd
menglcai-amd force-pushed the amd/dev/klin/triton-gfx1150-gemm-a16w16-config branch from 52fc7a0 to 8acf207 Compare November 8, 2026 10:13
Copilot AI balanced review requested due to automatic review settings November 8, 2026 10:13

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.

@github-actions

Copy link
Copy Markdown
Contributor

No activity for 15 days, so this is now labelled stale. A push or a comment clears it; keep-open exempts it. Nothing is closed automatically.

@github-actions github-actions Bot added the stale The PR hasn't been updated in 2 weeks label Nov 24, 2026
@github-actions github-actions Bot removed the stale The PR hasn't been updated in 2 weeks label Nov 25, 2026

@Boss2002n Boss2002n 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.

LGTM

@Boss2002n
Boss2002n merged commit 076e5b7 into main Nov 27, 2026
101 of 103 checks passed
@Boss2002n
Boss2002n deleted the amd/dev/klin/triton-gfx1150-gemm-a16w16-config branch November 27, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants