arch_defaults: gfx1200/gfx1201 get the six exact prompt switches of the gfx1151 table (decode half stays off); STRATA_GFX12_DEFAULTS=0 opts out (#1478)
This commit is contained in:
1 parent
fb58e0dbc8
commit
dd106e7de5
3 files changed
+39
-3
No files matched your search
@@ -28,7 +28,6 @@ int main() {
|
||||
unset("STRATA_GFX1151_DEFAULTS");
|
||||
// other architectures (and CUDA, which passes an empty name): nothing
|
||||
CHECK(arch_default_env("gfx1100").empty());
|
||||
CHECK(arch_default_env("gfx1201:sramecc-:xnack-").empty());
|
||||
CHECK(arch_default_env("gfx1150").empty());
|
||||
CHECK(arch_default_env("gfx11510").empty()); // not a prefix match
|
||||
CHECK(arch_default_env("").empty());
|
||||
@@ -44,6 +43,20 @@ int main() {
|
||||
CHECK(kv.first != bits);
|
||||
}
|
||||
}
|
||||
// gfx12: the six prompt switches only, no decode switch, no bit-changing one
|
||||
unset("STRATA_GFX12_DEFAULTS");
|
||||
for (const char* a : {"gfx1200", "gfx1201", "gfx1201:sramecc-:xnack-"}) {
|
||||
const auto t = arch_default_env(a);
|
||||
CHECK(t.size() == 6);
|
||||
for (const auto& kv : t) {
|
||||
CHECK(kv.first != "STRATA_Q8_PACKED" && kv.first != "STRATA_SH_STREAM" && kv.first != "STRATA_PF_GEMM" &&
|
||||
kv.first != "STRATA_PF_FUSED");
|
||||
}
|
||||
}
|
||||
CHECK(arch_default_env("gfx12010").empty());
|
||||
put("STRATA_GFX12_DEFAULTS", "0");
|
||||
CHECK(arch_default_env("gfx1201").empty());
|
||||
unset("STRATA_GFX12_DEFAULTS");
|
||||
// a user's setting wins, whatever it is; the rest are set
|
||||
put("STRATA_TSUM", "0");
|
||||
unset("STRATA_QFUSE");
|
||||
|
||||
Reference in new issue
Block a user