mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
On Windows the first plan cuts the RAM tier to what the GPU driver can pin (about half of the system RAM, "the RAM tier is planned within 15.3 GiB"), in a copy of the options (plan_opts). When --mtp-auto then decides that the sidecar does not pay, the plan was made again from the plain options and the cap was lost: a 32 GB RAM B70 PC pinned 16.9 GiB and every device allocation after the tier store failed with UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY, then DEVICE_LOST ("strata-ling32: cudaMemset: SYCL runtime error" at Load). Without the MTP flags there is no second plan and the cap held (12.4 to 13.4 GiB pinned: Load fine).
The replan now starts from plan_opts (hoisted next to win_pin_cap) with only the sidecar removed (mtp_file cleared, spec off), so it keeps the RAM budget of the first plan. The change is inside _WIN32: Linux, macOS and aarch64 compile the same code as before.