Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

STRATA_GDN_CHUNKED=2: skip the 128-SM test so the chunked recurrence can be measured on smaller cards

Niko1221f0880b3251aa
diff --git a/src/prefill/kernels.cu b/src/prefill/kernels.cu
index 38791f076..5314a5f1c 100644
--- a/src/prefill/kernels.cu
+++ b/src/prefill/kernels.cu
@@ -1032,7 +1032,11 @@ cudaError_t gdn_rec_chunked(float* state, const float* h, const float* gate, con
cudaGetLastError();
return cudaErrorNotSupported;
}
- if (strata::cc_major_of(major) < 8 || sms < HK * (S / GDV) || (size_t) strata::smem_optin_of(smem) < kChunkScanSmem)
+ // STRATA_GDN_CHUNKED=2 skips the SM-count test (measurement on a card under 128 SMs: the scan then runs in
+ // several waves and is expected to be slower than the default kernel; the architecture and shared-memory
+ // tests stay)
+ static const bool any_sms = [] { const char* v = std::getenv("STRATA_GDN_CHUNKED"); return v != nullptr && std::atoi(v) >= 2; }();
+ if (strata::cc_major_of(major) < 8 || (!any_sms && sms < HK * (S / GDV)) || (size_t) strata::smem_optin_of(smem) < kChunkScanSmem)
return cudaErrorNotSupported;
}
float* scratch = gdn_chunk_scratch();