[GH-ISSUE #979] HIP: a gfx1201 hipBLASLt table for 1.2.1 (100201, ROCm 7.2.0) makes the prompt 6-17% slower than no table #432

Closed
opened 2026-11-04 01:43:00 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @aswin-dot-R on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/979

Summary

A hipBLASLt table calibrated for gfx1201 + hipBLASLt 1.2.1 (100201, the packaged ROCm 7.2.0) with tools/hip/tune_hipblaslt loads cleanly (fallbacks=0) but makes the prompt slower than running without a table. Reporting it so nobody ships one for this combination expecting setup's "+40-60% prompt speed" (measured on the 7900 XTX); on RDNA4 + 1.2.1 the untuned path seems to be the better default already.

Setup

  • AI PRO R9700 32 GB + RX 9070 XT 16 GB (both gfx1201), layer split [1, 0], Qwen3.8-Flash-Next IQ3_S, --max-context 262144 --kv int8, MTP drafts
  • engine v0.1.39 (setup's flags, STRATA_SH_STREAM=0 per #816), Linux 6.17, ROCm 7.2.0 (hipBLASLt 1.2.1)
  • table: the 32 cases of the shipped gfx1201-hipblaslt-100500.txt, calibrated on the R9700 as in AMD_HIP.md's "Tuning table" -> STRATA_HIPBLASLT_TUNING_V1 gfx1201 100201, 32 rows

Result (fresh server per run, engine timings, STRATA_HIPBLASLT_VERBOSE=1)

no table with the 100201 table
prompt, 40,920 tokens 1,186 tok/s 980 tok/s (-17%)
prompt, 199,312 fresh tokens of a 232K prompt 1,218 tok/s 1,148 tok/s (-6%)
decode, 1200 tokens 79.4 79.6
prefill gemm: hipBLASLt summary - launches=14670 fallbacks=0 unique_fallback_shapes=0
232K needle correct correct

One run per variant; the 41K difference is far outside the run-to-run spread I see on this machine (~2-3%). I can share the table file or rerun with other --tokens if a different calibration is worth trying.

Suggestion

Maybe note in AMD_HIP.md's "Tuning table" section that on gfx1201 with hipBLASLt 1.2.1 a table measured slower than no table, so "compare before keeping it" is not a formality there.

Originally created by @aswin-dot-R on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/979 ### Summary A hipBLASLt table calibrated for **gfx1201 + hipBLASLt 1.2.1 (`100201`, the packaged ROCm 7.2.0)** with `tools/hip/tune_hipblaslt` loads cleanly (`fallbacks=0`) but makes the prompt **slower** than running without a table. Reporting it so nobody ships one for this combination expecting setup's "+40-60% prompt speed" (measured on the 7900 XTX); on RDNA4 + 1.2.1 the untuned path seems to be the better default already. ### Setup - AI PRO R9700 32 GB + RX 9070 XT 16 GB (both gfx1201), layer split `[1, 0]`, Qwen3.8-Flash-Next IQ3_S, `--max-context 262144 --kv int8`, MTP drafts - engine v0.1.39 (setup's flags, `STRATA_SH_STREAM=0` per #816), Linux 6.17, ROCm 7.2.0 (hipBLASLt 1.2.1) - table: the 32 cases of the shipped `gfx1201-hipblaslt-100500.txt`, calibrated on the R9700 as in AMD_HIP.md's "Tuning table" -> `STRATA_HIPBLASLT_TUNING_V1 gfx1201 100201`, 32 rows ### Result (fresh server per run, engine timings, `STRATA_HIPBLASLT_VERBOSE=1`) | | no table | with the 100201 table | | --- | ---: | ---: | | prompt, 40,920 tokens | **1,186 tok/s** | 980 tok/s (-17%) | | prompt, 199,312 fresh tokens of a 232K prompt | **1,218 tok/s** | 1,148 tok/s (-6%) | | decode, 1200 tokens | 79.4 | 79.6 | | `prefill gemm: hipBLASLt summary` | - | `launches=14670 fallbacks=0 unique_fallback_shapes=0` | | 232K needle | correct | correct | One run per variant; the 41K difference is far outside the run-to-run spread I see on this machine (~2-3%). I can share the table file or rerun with other `--tokens` if a different calibration is worth trying. ### Suggestion Maybe note in AMD_HIP.md's "Tuning table" section that on gfx1201 with hipBLASLt 1.2.1 a table measured slower than no table, so "compare before keeping it" is not a formality there.
Author
Owner

@aswin-dot-R commented on GitHub (Oct 5, 2026):

Correction: the table is neutral, not slower - my first comparison was noise

I re-measured properly and the slowdown above does not hold up. Same setup, stock v0.1.39, STRATA_SH_STREAM=0, four fresh servers interleaved (no table / table / no table / table), each reading three fresh 40,948-token prompts (a unique nonce first, so nothing is reused):

server 1st prompt 2nd 3rd
no table #1 1,191.5 1,030.3 1,029.6
table #1 1,193.2 1,031.0 1,032.2
no table #2 1,193.3 1,029.5 1,027.9
table #2 1,195.7 1,057.3 1,030.3

(tok/s, engine timings.) With and without the table the prompt speed is the same within ~0.3%. What fooled me: every server reads its first fresh prompt at ~1,190 tok/s and the following ones at ~1,030, so my original single-run comparison (1,186 vs 980) caught the two arms in different phases. That first-vs-later step is interesting in itself, but unrelated to hipBLASLt.

The per-GEMM calibration agrees with "small or no gain": against hipblasGemmEx the tuned solutions win on 21 of 32 shapes and lose on two (N=10240 K=320, 0.89x/0.92x), 1.08x over all 32 shapes - on the order of the +0-4% the docs report for the R9700 with hipBLASLt 1.4.1/1.5.0, and nothing like the 1.2.2 case.

So: on gfx1201 + hipBLASLt 1.2.1 a table doesn't hurt, it just doesn't buy anything end to end. Closing this - sorry for the noise.

<!-- gh-comment-id:6000945664 --> @aswin-dot-R commented on GitHub (Oct 5, 2026): ## Correction: the table is neutral, not slower - my first comparison was noise I re-measured properly and the slowdown above does not hold up. Same setup, stock v0.1.39, `STRATA_SH_STREAM=0`, four fresh servers interleaved (no table / table / no table / table), each reading **three fresh 40,948-token prompts** (a unique nonce first, so nothing is reused): | server | 1st prompt | 2nd | 3rd | | --- | ---: | ---: | ---: | | no table #1 | 1,191.5 | 1,030.3 | 1,029.6 | | table #1 | 1,193.2 | 1,031.0 | 1,032.2 | | no table #2 | 1,193.3 | 1,029.5 | 1,027.9 | | table #2 | 1,195.7 | 1,057.3 | 1,030.3 | (tok/s, engine timings.) With and without the table the prompt speed is the same within ~0.3%. What fooled me: every server reads its **first** fresh prompt at ~1,190 tok/s and the following ones at ~1,030, so my original single-run comparison (1,186 vs 980) caught the two arms in different phases. That first-vs-later step is interesting in itself, but unrelated to hipBLASLt. The per-GEMM calibration agrees with "small or no gain": against `hipblasGemmEx` the tuned solutions win on 21 of 32 shapes and lose on two (`N=10240 K=320`, 0.89x/0.92x), 1.08x over all 32 shapes - on the order of the +0-4% the docs report for the R9700 with hipBLASLt 1.4.1/1.5.0, and nothing like the 1.2.2 case. So: on gfx1201 + hipBLASLt 1.2.1 a table doesn't hurt, it just doesn't buy anything end to end. Closing this - sorry for the noise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#432
No description provided.