fused_gr: STRATA_GR_NORM_FAST=1 on CUDA too (opt-in; the register split norm is bitwise the default; decode +0.5-0.6% on a V100 + PG500 split)

This commit is contained in:
Warabii1248 authored and Niko1221 committed 2026-10-14 07:08:23 +02:00
1 parent ab7c977216
commit fec7d1cae2
1 file changed
+3 -1
+3 -1
View File
@@ -1020,7 +1020,9 @@ bool norm_fast_on() {
}
return per_dev[dev] == 2;
#else
return false;
// CUDA: opt-in with STRATA_GR_NORM_FAST=1 (measured on sm_70 only)
static const bool on = [] { const char* e = std::getenv("STRATA_GR_NORM_FAST"); return e != nullptr && std::atoi(e) != 0; }();
return on;
#endif
}