batch-groups: --remote-expert-opt without a helper cache does not keep the concurrent read off

The flag works only through a helper cache (--expert-cache-device1..3), and on a plain layer split it is inert
(MULTI_GPU.md, #1447), so the check looks at the helper caches themselves. #2275's rig runs a plain split with the
flag set, and the mode would have stayed off there for a cache it does not have.
This commit is contained in:
SuperDistance authored and Niko1221 committed 2026-10-14 11:58:16 +02:00
1 parent 6c5c382b94
commit 0d47295f5a
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -11664,7 +11664,8 @@ int main(int argc, char** argv) {
s.split_mtp_batch = env_on("STRATA_SPLIT_MTP_BATCH");
s.fs_slots = env_on("STRATA_FS_SLOTS");
s.pcie_dma = o.pcie_mode == "dma";
s.helper_caches = o.remote_expert_opt || prefill_src != srcp;
// (--remote-expert-opt works only through a helper cache, so without one it does not count)
s.helper_caches = prefill_src != srcp;
for (int r = 0; r < 3; ++r) s.helper_caches |= o.expert_cache_remote[(size_t) r] > 0;
s.staged_source = srcp == &src && src.stages_blobs();
s.other_source = srcp != &src && srcp != &arena_src;