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

Manually merged
github merged 3 commits from github-bot/gh-1253 into main 2026-11-29 08:21:56 +00:00 AGit
Owner

@⁠Gauss999 on GitHub · 2026-11-28 16:24 UTC · original
Gauss999:patch-1 → main · +72 −2 · 2 files · 3 commits · merged 2026-11-29 08:16 UTC

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** on GitHub · 2026-11-28 16:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1253) `Gauss999:patch-1` → `main` · +72 −2 · 2 files · 3 commits · merged 2026-11-29 08:16 UTC ## 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.
Add --used and --all to preload. Reuse early-pipelines.txt by default, preserve full warm-up with --all or when no list exists, and test the selection policy and CLI conflict.
Treat a missing early-pipelines.txt as a first run, report other read errors, and cover empty-list detection with a unit test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 16:26:07 +00:00
Author
Owner

@⁠Gauss999 on GitHub · 2026-11-28 22:53 UTC · original

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.

**@⁠Gauss999** on GitHub · 2026-11-28 22:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1253#issuecomment-7247052813) 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.
github manually merged commit 218896e4c4 into main 2026-11-29 08:21:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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