Preload used pipelines by default when a recorded list exists #1253

Merged
Gauss999 merged 3 commits from upstream-pr/1253 into main 2026-11-29 08:16:57 +00:00
Gauss999 commented 2026-11-28 16:24:34 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Gauss999 on 2026-11-28T16:24:34Z.


Summary

  • make victory preload reuse the existing warm --used filtering whenever early-pipelines.txt contains a recorded pipeline;
  • add explicit preload --used to skip the full warm-up even before a list exists, and preload --all to request the previous full warm-up;
  • log the selected mode and avoid silently turning an unreadable list into an expensive all-pipeline warm-up;
  • cover the selection policy, CLI conflict and empty-list handling with unit tests.

Why

warm --used already filtered known pipelines, but preload always passed used = false. After a run has produced early-pipelines.txt, reusing it avoids warming every known pipeline and reduces preparation time and peak memory on RAM-limited machines. The existing warm command and its defaults are unchanged.

Behavior

  • recorded non-empty list: warm used pipelines by default;
  • no list: preserve the existing full warm-up, unless --used is explicit;
  • --all: always warm every eligible known pipeline;
  • --used --all: rejected by clap.

Validation

Added tests for the selection matrix, CLI conflict and blank/whitespace-only lists. This change was prepared through the GitHub editor; no local Windows build or runtime benchmark has been run yet. CI should run clippy in both configurations and the workspace tests.

Runtime A/B validation is still needed on a recorded cache: compare selected pipeline counts, warm-up wall time and peak RAM/commit, then confirm that the same loading sequence finds its pipelines in the driver cache/library.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5542245402 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1253). Originally posted by [Gauss999](https://github.com/Gauss999) on 2026-11-28T16:24:34Z. --- ## Summary - make `victory preload` reuse the existing `warm --used` filtering whenever `early-pipelines.txt` contains a recorded pipeline; - add explicit `preload --used` to skip the full warm-up even before a list exists, and `preload --all` to request the previous full warm-up; - log the selected mode and avoid silently turning an unreadable list into an expensive all-pipeline warm-up; - cover the selection policy, CLI conflict and empty-list handling with unit tests. ## Why `warm --used` already filtered known pipelines, but `preload` always passed `used = false`. After a run has produced `early-pipelines.txt`, reusing it avoids warming every known pipeline and reduces preparation time and peak memory on RAM-limited machines. The existing `warm` command and its defaults are unchanged. ## Behavior - recorded non-empty list: warm used pipelines by default; - no list: preserve the existing full warm-up, unless `--used` is explicit; - `--all`: always warm every eligible known pipeline; - `--used --all`: rejected by clap. ## Validation Added tests for the selection matrix, CLI conflict and blank/whitespace-only lists. This change was prepared through the GitHub editor; no local Windows build or runtime benchmark has been run yet. CI should run clippy in both configurations and the workspace tests. Runtime A/B validation is still needed on a recorded cache: compare selected pipeline counts, warm-up wall time and peak RAM/commit, then confirm that the same loading sequence finds its pipelines in the driver cache/library.
Gauss999 commented 2026-11-28 22:53:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Gauss999 on 2026-11-28T22:53:23Z.


Acompanhamento das referências #1483 e #1618: este PR altera somente a seleção used/all do preload. Ele não corrige a chave de “done” baseada no caminho do executável nem, sozinho, garante o preenchimento da host pipeline library. A #1618 trata esses dois pontos e é complementar; prefiro manter os escopos separados para facilitar revisão e validação A/B.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7247052813 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1253#issuecomment-7247052813). Originally posted by [Gauss999](https://github.com/Gauss999) on 2026-11-28T22:53:23Z. --- Acompanhamento das referências #1483 e #1618: este PR altera somente a seleção `used`/`all` do preload. Ele não corrige a chave de “done” baseada no caminho do executável nem, sozinho, garante o preenchimento da host pipeline library. A #1618 trata esses dois pontos e é complementar; prefiro manter os escopos separados para facilitar revisão e validação A/B.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1253
No description provided.