feat(gpu,core): add opt-in startup hardware autotune probe and victory.toml (VICTORY_AUTOTUNE=1) #418

Closed
github-bot wants to merge 660 commits from github-bot/gh-418 into main AGit
Owner

@⁠Vladimir-Human on GitHub · 2026-11-28 15:22 UTC · original
Vladimir-Human:feat/optin-startup-autotune → main · +61217 −5437 · 214 files · 660 commits · closed without merging

Implements item #3 from #401 strictly opt-in (VICTORY_AUTOTUNE=1 or VICTORY_AUTOTUNE_FILE, default OFF = 0).

Summary (0645c95)

  • Probes DXGI dedicated VRAM & budgets, display-output LUID mismatch risk, ReBAR (GPUUploadHeapSupported), D3D12_FEATURE_DATA_ARCHITECTURE1 UMA/cache-coherency, and CPU logical/P/E/NUMA/L3-domain topology at startup when opted in.
  • Reads/writes inspectable victory.toml (ram_budget_mb, vram_tier, hybrid_cpu, advisory uma_fast_path) using existing workspace deps (Cargo.lock untouched).
  • Invariants: default OFF executes zero probe/file I/O; explicit VICTORY_* environment variables strictly take precedence over victory.toml; generated profiles keep uma_fast_path = false (auto UMA activation stays disabled per Radeon 8060S finding).

Verification

  • cargo xtask policy: OK
  • cargo clippy -p victory-core -p victory-gpu --all-targets --locked -- -D warnings & --features diagnostics: 0 warnings
  • cargo test -p victory-core --locked: 15/15 passed
  • VICTORY_D3D12_DEBUG=1 & VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --features diagnostics --locked --lib autotune: 14/14 passed on both
**@⁠Vladimir-Human** on GitHub · 2026-11-28 15:22 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/418) `Vladimir-Human:feat/optin-startup-autotune` → `main` · +61217 −5437 · 214 files · 660 commits · closed without merging Implements item #3 from #401 strictly opt-in (`VICTORY_AUTOTUNE=1` or `VICTORY_AUTOTUNE_FILE`, default OFF = `0`). ### Summary (`0645c95`) - Probes DXGI dedicated VRAM & budgets, display-output LUID mismatch risk, ReBAR (`GPUUploadHeapSupported`), `D3D12_FEATURE_DATA_ARCHITECTURE1` UMA/cache-coherency, and CPU logical/P/E/NUMA/L3-domain topology at startup when opted in. - Reads/writes inspectable `victory.toml` (`ram_budget_mb`, `vram_tier`, `hybrid_cpu`, advisory `uma_fast_path`) using existing workspace deps (`Cargo.lock` untouched). - **Invariants:** default OFF executes zero probe/file I/O; explicit `VICTORY_*` environment variables strictly take precedence over `victory.toml`; generated profiles keep `uma_fast_path = false` (auto UMA activation stays disabled per Radeon 8060S finding). ### Verification - `cargo xtask policy`: **OK** - `cargo clippy -p victory-core -p victory-gpu --all-targets --locked -- -D warnings` & `--features diagnostics`: **0 warnings** - `cargo test -p victory-core --locked`: **15/15 passed** - `VICTORY_D3D12_DEBUG=1` & `VICTORY_D3D12_WARP=1` `cargo test -p victory-gpu --features diagnostics --locked --lib autotune`: **14/14 passed** on both
All behavioral changes default OFF (`0`) so baseline execution/DXIL is unchanged
unless explicitly opted in.

Verified: synced=14; policy OK; clippy OK; clippy-diag OK; core-test OK (15p); HW OK (14p); WARP OK (14p) (repairs=0)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:26:14 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:35 UTC · original

Thanks for keeping the hardware probe opt-in and explicit environment settings authoritative. Please preserve the no-probe/no-write behavior when disabled, and test invalid or stale victory.toml files and adapter changes. Automatic UMA activation should remain disabled pending hardware evidence.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/418#issuecomment-7255218266) Thanks for keeping the hardware probe opt-in and explicit environment settings authoritative. Please preserve the no-probe/no-write behavior when disabled, and test invalid or stale victory.toml files and adapter changes. Automatic UMA activation should remain disabled pending hardware evidence.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:08 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/418#issuecomment-7285775257) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.
github-bot closed this pull request 2026-11-30 17:14:24 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.