Repository navigation
[Triton/Gluon] [Config] [gfx1100] Add gfx1100 (RDNA3) tuned Triton A16W16 GEMM configs - #4234
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
…les, add N=9216 K=3072 Signed-off-by: Martin Domanský <[email protected]>
Signed-off-by: Martin Domanský <[email protected]>
…les, add N=9216 K=3072 Signed-off-by: Martin Domanský <[email protected]>
|
No activity for 15 days, so this is now labelled |
|
Tested this table on gfx1100 hardware (RX 7900 XTX, ROCm 7.2.4, torch 2.13.0+rocm7.2, Triton 3.7.1) against current On current main this PR's file is no longer picked up. With The table itself works well once moved to
So moving the files into |
|
@amarbarosys Thanks for your tests! I'll move these configs to the right place |
Since ROCm#4948, get_gemm_config() only reads configs/<arch>/<backend>/gemm/<d_type>/, so the flat configs/gemm/gfx1100-GEMM-A16W16*.json files were never loaded and gemm_a16w16 still failed on gfx1100 with "Required config file doesn't exist: .../configs/gfx1100/triton/gemm/gemm_a16w16/DEFAULT.json". Pure rename, file contents unchanged: configs/gemm/gfx1100-GEMM-A16W16.json -> configs/gfx1100/triton/gemm/gemm_a16w16/DEFAULT.json configs/gemm/gfx1100-GEMM-A16W16-N=<N>-K=<K>.json -> configs/gfx1100/triton/gemm/gemm_a16w16/GEMM-A16W16-N=<N>-K=<K>.json Co-authored-by: Cursor <[email protected]>
The four N/K files only tune M_LEQ_4..M_LEQ_32. Without "DEFAULT_FALLBACK" they replaced DEFAULT.json, so every M > 32 ran the file's "any" tile, which is up to 2x slower than the DEFAULT.json buckets on gfx1100 (bf16 N=7168 K=5120 M=8192: 18.9 ms vs 9.2 ms). Write them the way the tuning scripts do: "DEFAULT_FALLBACK": true, the tuned buckets, and a copy of DEFAULT.json's "any". The M <= 32 buckets are unchanged. N=5120 K=17408 keeps its previous "any" tile as M_LEQ_64 and M_LEQ_128, where it measured 1.14x and 1.36x faster than DEFAULT.json.
e81cee8 to
7fa91ee
Compare
|
Thanks @amarbarosys for catching this and for testing it! I've moved the configs to the correct location ( |
There was a problem hiding this comment.
🔵 Needs a closer look
The hardware-specific settings lack split-K regression coverage and supplied gfx1100 correctness and performance results.
1 open finding
What changed in this PR
Adds gfx1100 configurations for the existing Triton A16W16 GEMM path, targeting Qwen3-14B workloads on RDNA3.
Changes:
- Adds default configurations across M buckets.
- Adds four shape-specific configurations with split-K settings.
| File | Description |
|---|---|
aiter/ops/triton/configs/gfx1100/triton/gemm/gemm_a16w16/GEMM-A16W16-N=7168-K=5120.json |
Shape-specific tiles and split-K settings. |
aiter/ops/triton/configs/gfx1100/triton/gemm/gemm_a16w16/GEMM-A16W16-N=5120-K=5120.json |
Shape-specific tiles and split-K settings. |
aiter/ops/triton/configs/gfx1100/triton/gemm/gemm_a16w16/GEMM-A16W16-N=5120-K=17408.json |
Shape-specific settings through M=128. |
aiter/ops/triton/configs/gfx1100/triton/gemm/gemm_a16w16/GEMM-A16W16-N=34816-K=5120.json |
Shape-specific tiles and split-K settings. |
aiter/ops/triton/configs/gfx1100/triton/gemm/gemm_a16w16/DEFAULT.json |
General fallback configurations for gfx1100. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Martin Domanský <[email protected]>
…les, add N=9216 K=3072 Signed-off-by: Martin Domanský <[email protected]>
* Add gemm_a16w16 Triton config for gfx1101 (table from #4234) Signed-off-by: Martin Domanský <[email protected]> * Add gfx1101 gemm_a16w16 configs for four large (N, K) shapes Signed-off-by: Martin Domanský <[email protected]> * gfx1101 gemm_a16w16: keep #4234 bins below M 1024 in per-shape files, add N=9216 K=3072 Signed-off-by: Martin Domanský <[email protected]> * gfx1101 gemm_a16w16: use DEFAULT_FALLBACK in the per-shape files Each per-shape file now holds only its tuned tile, in the bucket of the M it was measured at: M_LEQ_4096 for N=9216-K=3072, N=12288-K=3072 and N=3072-K=12288 (M = 4096), M_LEQ_8192 for N=21504-K=3072 and N=3072-K=15360 (M = 4608). The buckets M_LEQ_4 to M_LEQ_1024 were copies of DEFAULT.json and now come from it through DEFAULT_FALLBACK. "any" is the one from DEFAULT.json, as write_best_configs.py writes it. The tiles are unchanged. Signed-off-by: Martin Domanský <[email protected]> --------- Signed-off-by: Martin Domanský <[email protected]>

Motivation
AITER ships tuned Triton GEMM configs for CDNA (gfx942 / gfx950) and gfx1250, but not for gfx1100 (RDNA3, e.g. Radeon PRO W7900). I ran into this while running Qwen3-14B on a W7900 with aiter enable , the config loader (
get_gemm_configinaiter/ops/triton/utils/gemm_config_utils.py) requires the base{arch}-{config_name}.jsonto exist (fpath_should_exist=True):So the Triton
gemm_a16w16path is unusable on gfx1100 / W7900.Technical Details
So i add gfx1100-tuned A16W16 configs (tuned on a W7900, ROCm 7.2.3):
gfx1100-GEMM-A16W16.json— generic fallback (M_LEQ_4..1024+any,NUM_KSPLIT=1, tile sizes kept within RDNA3's 64 KB LDS).Test Plan
Test Result
Submission Checklist