gdn_rec_parity: same STRATA_GDN_CHUNKED=2 SM-count bypass as the engine copy

This commit is contained in:
Niko1221 committed 2026-10-07 20:27:55 +02:00
1 parent 0c7eb37d1b
commit 85a108a751
1 file changed
+3 -1
+3 -1
View File
@@ -563,7 +563,9 @@ cudaError_t gdn_rec_chunked(float* state, const float* h, const float* gate, con
cudaGetLastError();
return cudaErrorNotSupported;
}
if (major < 8 || sms < HK * (S / GDV) || (size_t) smem < kChunkScanSmem)
// as in kernels.cu: STRATA_GDN_CHUNKED=2 skips the SM-count test (to measure a card under 128 SMs)
static const bool any_sms = [] { const char* v = std::getenv("STRATA_GDN_CHUNKED"); return v != nullptr && std::atoi(v) >= 2; }();
if (major < 8 || (!any_sms && sms < HK * (S / GDV)) || (size_t) smem < kChunkScanSmem)
return cudaErrorNotSupported;
}
float* scratch = gdn_chunk_scratch();