Merge f-148-amd (2053388dc, without the IQ2 fused default) into f-split-int2

This commit is contained in:
Niko1221 committed 2026-10-18 09:18:46 +02:00
commit af3770c6b0
6 files changed
+60 -33

No files matched your search

+2 -7
View File
@@ -5373,13 +5373,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")) {