From fec7d1cae2c0c078da754f78edbf0acf737f7a90 Mon Sep 17 00:00:00 2001 From: Warabii1248 <93115877+Warabii1248@users.noreply.github.com> Date: Tue, 13 Oct 2026 19:20:29 +0900 Subject: [PATCH] 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) --- src/kernels/cuda/fused_gr.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cu index c3c2fc8d..ff8f4f36 100644 --- a/src/kernels/cuda/fused_gr.cu +++ b/src/kernels/cuda/fused_gr.cu @@ -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 }