[PR #5235] [CLOSED] [Engine] hip: gfx1200 hipBLASLt tuning table for hipBLASLt 1.4.1 (100401) #5358

Closed
opened 2026-11-07 16:34:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5235
Author: @ghost
Created: 11/4/2026
Status: ❌ Closed

Base: main ← Head: gfx1200-hipblaslt-100401-table


📝 Commits (1)

  • f759b8a hip: gfx1200 hipBLASLt tuning table for hipBLASLt 1.4.1 (100401)

📊 Changes

5 files changed (+1645 additions, -0 deletions)

View changed files

➕ bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/README.md (+87 -0)
➕ bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/runs.json (+1406 -0)
➕ bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/shapes-canon.json (+98 -0)
➕ bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/tune-command.txt (+20 -0)
➕ tools/hip/gfx1200-hipblaslt-100401.txt (+34 -0)

📄 Description

The problem

On gfx1200, tools/hip/ carries a hipBLASLt tuning table only for version 100202. Boxes whose
installed SDK reports hipBLASLt 100401 (1.4.1) — a common current Linux install — have no
matching table: setup.sh says so and the engine falls back to plain hipBLAS
(docs/AMD_HIP.md "Tuning
tables" / "A hand-built engine has no tuning table"), and the docs explicitly ask for exactly
this kind of table plus a measured run from AMD cards.

What this PR adds

  • tools/hip/gfx1200-hipblaslt-100401.txt — tuned on a real RX 9060 XT box with the tree's
    own tune_hipblaslt against the exact library the served engine links: the same 16-shape
    canonical set × {4096, 8192} buckets used by the
    gfx1100 100500 community table,
    every candidate correctness-gated, every row its case's measured best.
  • bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/ — the full evidence folder
    (README with environment and method, runs.json with all six leg records,
    tune-command.txt, shapes-canon.json).

Measured on this box (v0.2.10 / engine 0.1.56, Qwen3.8-Flash-Next IQ3_S, dual RX 9060 XT helper mode)

Served-path A/B with tools/hip/bench_prefill.py, three interleaved rounds, one fresh engine
per leg, reused = 0 verified, n=6 per arm per size, prefill tok/s from the engine's own
timing lines:

Prompt (actual fresh tokens) With table No table Delta
4,210 1315 (1258–1406) 1311 (1252–1382) +0.3% — ranges overlap, not distinguishable
8,830 1646 (1636–1653) 1620 (1611–1628) +1.6% — the arms do not overlap

At 8.8K every single table leg beats every single no-table leg. At 4.2K this box cannot tell
the arms apart. No decode claim: the table routes prompt GEMMs only.

Notes

  • Three of the 32 rows pick a solution whose tuned case measures 0.94–0.99× of plain hipBLAS.
    They are kept because the end-to-end A/B above ran against the complete file; dropping those
    three specific rows is a trivial follow-up if that is the preferred form.
  • No default changes: the table stays opt-in (STRATA_HIPBLASLT_TUNING, or the packaged-tuning
    settings). For a source setup.sh on a matching arch+version it is now auto-matched by the
    existing rule.
  • Nothing here changes the shipped-package table policy; the AGENTS table for Linux rx6000
    says "none" today — whether 100401 belongs in any package is the maintainer's call.

Reproduce in one page: bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/README.md.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/5235 **Author:** [@ghost](https://github.com/ghost) **Created:** 11/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gfx1200-hipblaslt-100401-table` --- ### 📝 Commits (1) - [`f759b8a`](https://github.com/Niko1221/Strata/commit/f759b8a5fd4464ddbb8db4f931fe889d58ad26bf) hip: gfx1200 hipBLASLt tuning table for hipBLASLt 1.4.1 (100401) ### 📊 Changes **5 files changed** (+1645 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/README.md` (+87 -0) ➕ `bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/runs.json` (+1406 -0) ➕ `bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/shapes-canon.json` (+98 -0) ➕ `bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/tune-command.txt` (+20 -0) ➕ `tools/hip/gfx1200-hipblaslt-100401.txt` (+34 -0) </details> ### 📄 Description ### The problem On gfx1200, `tools/hip/` carries a hipBLASLt tuning table only for version 100202. Boxes whose installed SDK reports hipBLASLt **100401 (1.4.1)** — a common current Linux install — have no matching table: `setup.sh` says so and the engine falls back to plain hipBLAS ([docs/AMD_HIP.md](https://github.com/Niko1221/Strata/blob/main/docs/AMD_HIP.md) "Tuning tables" / "A hand-built engine has no tuning table"), and the docs explicitly ask for exactly this kind of table plus a measured run from AMD cards. ### What this PR adds - `tools/hip/gfx1200-hipblaslt-100401.txt` — tuned on a real RX 9060 XT box with the tree's own `tune_hipblaslt` against the exact library the served engine links: the same 16-shape canonical set × {4096, 8192} buckets used by the [gfx1100 100500 community table](bench/results/2026-10-04-community-rx7900xtx-hipblaslt-100500/), every candidate correctness-gated, every row its case's measured best. - `bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/` — the full evidence folder (README with environment and method, `runs.json` with all six leg records, `tune-command.txt`, `shapes-canon.json`). ### Measured on this box (v0.2.10 / engine 0.1.56, Qwen3.8-Flash-Next IQ3_S, dual RX 9060 XT helper mode) Served-path A/B with `tools/hip/bench_prefill.py`, three interleaved rounds, one fresh engine per leg, `reused = 0` verified, n=6 per arm per size, prefill tok/s from the engine's own timing lines: | Prompt (actual fresh tokens) | With table | No table | Delta | | --- | ---: | ---: | ---: | | 4,210 | 1315 (1258–1406) | 1311 (1252–1382) | +0.3% — ranges overlap, not distinguishable | | 8,830 | **1646** (1636–1653) | 1620 (1611–1628) | **+1.6% — the arms do not overlap** | At 8.8K every single table leg beats every single no-table leg. At 4.2K this box cannot tell the arms apart. No decode claim: the table routes prompt GEMMs only. ### Notes - Three of the 32 rows pick a solution whose tuned case measures 0.94–0.99× of plain hipBLAS. They are kept because the end-to-end A/B above ran against the complete file; dropping those three specific rows is a trivial follow-up if that is the preferred form. - No default changes: the table stays opt-in (`STRATA_HIPBLASLT_TUNING`, or the packaged-tuning settings). For a source `setup.sh` on a matching arch+version it is now auto-matched by the existing rule. - Nothing here changes the shipped-package table policy; the AGENTS table for Linux `rx6000` says "none" today — whether 100401 belongs in any package is the maintainer's call. Reproduce in one page: [bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/README.md](bench/results/2026-11-05-community-gfx1200-hipblaslt-100401/README.md). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:34:37 +07:00
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#5358
No description provided.