hip: one-line start hint for STRATA_HIP_WMMA=1 on gfx12 with --kv int8
A hint only: it never enables the kernel and says the output bits change. Silent when the variable is set to anything. Follows the R9700 numbers of PR #1318 (+31% prompt at 8.8K).
This commit is contained in:
1 parent
3512797dba
commit
e9e1757a7f
2 files changed
+8
-1
No files matched your search
@@ -3950,6 +3950,13 @@ 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");
|
||||
#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")) {
|
||||
|
||||
Reference in new issue
Block a user