[GH-ISSUE #5430] [Engine] gfx1201/Windows: matrix-core prompt attention (STRATA_HIP_WMMA) is still opt-in 'until tested on Windows' — ~10x prompt speed left on the table on RX 9070 XT #3245

Open
opened 2026-11-07 14:39:08 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @il-freewind on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5430

What happened

On Windows with gfx1201 (Radeon RX 9070 XT), the engine still opts out of matrix-core prompt attention by default. Every start prints:

strata: the prompt attention on matrix cores is off by default on Windows (opt-in until tested on Windows); STRATA_HIP_WMMA=1 turns it on (gfx1201)

This string is still present in the 0.1.57 windows-x86_64-hip-rx9070 engine and in the live engine log. The message says "until tested on Windows" — this report is that test data point, offered so the default (or at least a visible switch) can be considered.

Measured on this machine (Qwen3.8-Flash-Next IQ3_S, ~83 GB, 128K context, KV int8, engine 0.1.47→0.1.57):

default STRATA_HIP_WMMA=1 (+ STRATA_PF_FUSED=0)
prompt speed @ ~10K tokens ~30 tok/s ~300 tok/s (×9–10)
decode ~5.9 tok/s ~14 tok/s

On 0.1.57 the combo runs stably (session up, first start succeeds, generation fine).

The companion variable, not retested destructively

On 0.1.47, STRATA_HIP_WMMA=1 without STRATA_PF_FUSED=0 crashed the engine on the first large prefill (hipModuleUnload failed: unspecified launch failure, exit 1). 0.1.57 ships new fused-prefill variants (STRATA_PF_FUSED_KQ / _IQ2S / _NATIVE are visible in the binary), but I have not re-run the destructive crash test without STRATA_PF_FUSED=0, so I can't say whether the companion var is still required. If you consider flipping the WMMA default, that interaction is the thing to test first.

Suggestion

Two non-exclusive options:

  1. Test and enable matrix-core prompt attention by default on Windows gfx12 (matching the Linux gfx12 direction of 0.2.11, where the K-quant prompt kernels and the QSA block scorer are default-on).
  2. Expose it as a Settings → Speed switch next to "Faster answers on Radeon RX 9000 / AI PRO R9700" (that switch is the PCIe-frac CPU/GPU split, a different knob). Today tune_knobs.py deliberately excludes STRATA_HIP_WMMA from autotuning ("it changes the numbers — a quality setting"), so it stays an undocumented env var that Windows users have to find in the engine log.

Related: the closed #3750 (its engine-side remainder). Autotune's exclusion note and the log message both suggest the quality delta is the blocker; on this card I haven't seen answer-quality complaints at temperature 0 in casual use, but I have not run a KL/top-1 comparison.

Strata version

App 0.2.11, control 0.1.57, engine 0.1.57-windows-x86_64-hip-rx9070 (feed sequence 121).

Graphics card, memory and system

AMD Radeon RX 9070 XT (gfx1201), 16 GB VRAM, 64 GB RAM, Windows 11 (10.0.26200), driver-side HIP runtime as bundled with the engine.

Originally created by @il-freewind on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5430 ### What happened On Windows with gfx1201 (Radeon RX 9070 XT), the engine still opts out of matrix-core prompt attention by default. Every start prints: ``` strata: the prompt attention on matrix cores is off by default on Windows (opt-in until tested on Windows); STRATA_HIP_WMMA=1 turns it on (gfx1201) ``` This string is still present in the 0.1.57 `windows-x86_64-hip-rx9070` engine and in the live engine log. The message says "until tested on Windows" — this report is that test data point, offered so the default (or at least a visible switch) can be considered. Measured on this machine (Qwen3.8-Flash-Next IQ3_S, ~83 GB, 128K context, KV int8, engine 0.1.47→0.1.57): | | default | `STRATA_HIP_WMMA=1` (+ `STRATA_PF_FUSED=0`) | |---|---|---| | prompt speed @ ~10K tokens | ~30 tok/s | ~300 tok/s (×9–10) | | decode | ~5.9 tok/s | ~14 tok/s | On 0.1.57 the combo runs stably (session up, first start succeeds, generation fine). ### The companion variable, not retested destructively On 0.1.47, `STRATA_HIP_WMMA=1` **without** `STRATA_PF_FUSED=0` crashed the engine on the first large prefill (`hipModuleUnload failed: unspecified launch failure`, exit 1). 0.1.57 ships new fused-prefill variants (`STRATA_PF_FUSED_KQ` / `_IQ2S` / `_NATIVE` are visible in the binary), but I have not re-run the destructive crash test without `STRATA_PF_FUSED=0`, so I can't say whether the companion var is still required. If you consider flipping the WMMA default, that interaction is the thing to test first. ### Suggestion Two non-exclusive options: 1. Test and enable matrix-core prompt attention by default on Windows gfx12 (matching the Linux gfx12 direction of 0.2.11, where the K-quant prompt kernels and the QSA block scorer are default-on). 2. Expose it as a Settings → Speed switch next to "Faster answers on Radeon RX 9000 / AI PRO R9700" (that switch is the PCIe-frac CPU/GPU split, a different knob). Today `tune_knobs.py` deliberately excludes `STRATA_HIP_WMMA` from autotuning ("it changes the numbers — a quality setting"), so it stays an undocumented env var that Windows users have to find in the engine log. Related: the closed #3750 (its engine-side remainder). Autotune's exclusion note and the log message both suggest the quality delta is the blocker; on this card I haven't seen answer-quality complaints at temperature 0 in casual use, but I have not run a KL/top-1 comparison. ### Strata version App 0.2.11, control 0.1.57, engine 0.1.57-windows-x86_64-hip-rx9070 (feed sequence 121). ### Graphics card, memory and system AMD Radeon RX 9070 XT (gfx1201), 16 GB VRAM, 64 GB RAM, Windows 11 (10.0.26200), driver-side HIP runtime as bundled with the engine.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6693746955 --> @github-actions[bot] commented on GitHub (Nov 6, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
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#3245
No description provided.