mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
The per-layer host function made the overlap depend on the driver's callback thread being scheduled: with the pool's workers spinning on every other CPU it still cost 7 ms per window on a 20-core desktop even with the thread on all CPUs (RTX 3060, Core Ultra 7 265: 46.5 tok/s with the warmed callbacks against 56.5 with the overlap off). The copy stream now ends each layer's copies with a 4-byte device-to-host copy of the layer number into a pinned int the gate polls; same stream order, no host thread. STRATA_ADAPT_SIGNAL=host brings the host functions back. Swaps, residency and answers are unchanged.