gpu(host,send): add opt-in VICTORY_SEND_OWN_COPIED to snapshot only title-copied regions #210

Closed
github-bot wants to merge 1 commit from gh-pr/210/head into gh-pr/210/base
Owner

@⁠Androtim on GitHub · 2026-11-30 06:13 UTC · original
Androtim:feat/iter207-host-send-own-copied → main · +129 −10 · 2 files · 1 commits · closed without merging

Summary

  • Add opt-in VICTORY_SEND_OWN_COPIED=1 (off by default) across victory-gpu/src/host/send.rs and victory-gpu/src/host.rs to avoid copying all dirty CPU-shadow upload bytes into temporary own upload buffers every submission.
  • Track 64 KiB blocks written by title buffer copies (HostList::defer_copy) for an 8-frame sliding window (COPIED_FRAMES = 8).
  • Partition dirty copies before send::take(host, &dirty, direct_from) so shadows untouched by recent title copies stream their long runs directly out of their persistent staging buffers while keeping short word-sized scatters in own upload memory.
  • Add copied_blocks_track_ranges_and_expire_after_window unit test in host::send::tests.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host:: -- --test-threads=1
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings
**@⁠Androtim** on GitHub · 2026-11-30 06:13 UTC · [original](https://github.com/Androtim/MiniVI/pull/210) `Androtim:feat/iter207-host-send-own-copied` → `main` · +129 −10 · 2 files · 1 commits · closed without merging ## Summary - Add opt-in `VICTORY_SEND_OWN_COPIED=1` (off by default) across `victory-gpu/src/host/send.rs` and `victory-gpu/src/host.rs` to avoid copying all dirty CPU-shadow upload bytes into temporary own upload buffers every submission. - Track 64 KiB blocks written by title buffer copies (`HostList::defer_copy`) for an 8-frame sliding window (`COPIED_FRAMES = 8`). - Partition `dirty` copies before `send::take(host, &dirty, direct_from)` so shadows untouched by recent title copies stream their long runs directly out of their persistent staging buffers while keeping short word-sized scatters in own upload memory. - Add `copied_blocks_track_ranges_and_expire_after_window` unit test in `host::send::tests`. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host:: -- --test-threads=1` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:18:44 +00:00
github-bot closed this pull request 2026-12-01 20:18:44 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 08:41 UTC · original

GitHub reports merge conflicts against current main after Wave 6 merged. Please rebase onto latest main.

**@⁠Androtim** on GitHub · 2026-11-30 08:41 UTC · [original](https://github.com/Androtim/MiniVI/pull/210#issuecomment-7273217598) GitHub reports merge conflicts against current `main` after Wave 6 merged. Please rebase onto latest `main`.
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 10:02 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 10:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/210#issuecomment-7275042300) <!-- minivi-triage v1 head=098c268fee57f7a584b2ca5ac37601c464d1cb8c verdict=needs-rebase ci=passing at=2026-11-30T10:03:26Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:38 UTC · original

Closing conflicting opt-in VICTORY_* toggle PR per #276 policy (replace flawed base paths with default-on replacements rather than stacking opt-in toggles).

**@⁠Androtim** on GitHub · 2026-12-01 01:38 UTC · [original](https://github.com/Androtim/MiniVI/pull/210#issuecomment-7297727070) Closing conflicting opt-in VICTORY_* toggle PR per #276 policy (replace flawed base paths with default-on replacements rather than stacking opt-in toggles).

Pull request closed

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/Androtim--MiniVI!210
No description provided.