From dbf3bb2e643c769df89c96c891787afda3cba22c Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Fri, 23 Oct 2026 19:24:01 +0200 Subject: [PATCH] dsv41: the layer-major run's RAM is given back before the cache catch-up and the store fill --- src/dsv41/ds4_model.cu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dsv41/ds4_model.cu b/src/dsv41/ds4_model.cu index f4ccb36a..1b521555 100644 --- a/src/dsv41/ds4_model.cu +++ b/src/dsv41/ds4_model.cu @@ -7340,6 +7340,10 @@ struct Model::Impl { pos += n; st.tokens += n; cache_tick(n); + if (lm_end_.on) { // (the layer cache's RAM back before the store and the swaps want it) + lm_end(); + lm_end_.on = false; + } cache_settle(); const int nr = std::min(T_last, tap_cap); if (!seed_drafter(pos - nr, nr, 0, err)) return false;