gfx12: the matrix-core prompt attention (STRATA_HIP_WMMA) is the default; STRATA_HIP_WMMA=0 turns it off

Teacher-forced KL against the old kernel on an R9700 (Q2_0, int8 KV, fixed cache so the floor is 0.0000): 0.0003 over 6,024
positions (p99 0.006, top-1 99.8%), 0.0014 over 1,760 positions of 8 long documents (top-1 98.9%); HumanEval, reasoning, agent,
needles, CJK and tool calls equal. gfx11 stays opt-in. The 96-slot prompt ring follows the kernel (qsa_hip_wmma_active()).
The start-up hint about the switch is gone.
This commit is contained in:
Niko1221 committed 2026-10-18 03:47:13 +02:00
1 parent 3409d9aaec
commit 99f6d47233
4 files changed
+33 -26

No files matched your search

+2 -7
View File
@@ -5329,13 +5329,8 @@ int main(int argc, char** argv) {
const char* name = named && p.name[0] ? p.name : "(an unnamed GPU)";
#if defined(STRATA_USE_HIP)
std::fprintf(stderr, "strata generate: GPU %d: %s (%s)\n", dev, name, named ? p.gcnArchName : "?");
// A hint only, never an action: on RDNA4 with an int8 KV the opt-in matrix-core prompt attention reads prompts
// about 30% faster (R9700, PR #1318), but its output differs from the default kernel's in the last bits, so it
// stays the user's choice. Silent when the variable is set to anything (STRATA_HIP_WMMA=0 included).
if (named && o.kv == "int8" && std::strncmp(p.gcnArchName, "gfx12", 5) == 0 && std::getenv("STRATA_HIP_WMMA") == nullptr)
std::fprintf(stderr, "strata generate: hint: STRATA_HIP_WMMA=1 reads prompts about 30%% faster on this card with "
"--kv int8 (prompt attention on the matrix cores); it is off by default because the output "
"bits change (last-place rounding). Nothing was enabled.\n");
// (RDNA4's matrix-core prompt attention is the default since 148-amd: the engine says so once, at its first prompt;
// STRATA_HIP_WMMA=0 turns it off.)
#if defined(_WIN32)
// #468 #461: which HIP runtime was loaded - the bundled one beside the exe, or an AMD driver's System32 copy
if (HMODULE h = GetModuleHandleA("amdhip64_7.dll")) {