gpu heapmap: MapReduce descriptor-heap sweep on compute queue (VICTORY_GPU_HEAP_MAP=1) #348

Closed
truillo12 wants to merge 0 commits from upstream-pr/348 into main
truillo12 commented 2026-12-01 16:20:22 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by truillo12 on 2026-12-01T16:20:22Z.


Port VICTORY_GPU_HEAP_MAP=1 GPU compute MapReduce descriptor-heap sweep to foxhound:

  • Add crates/victory-gpu/src/heapmap.rs (compiled on Windows) and wire module in lib.rs.
  • Add Copied::write_seen in descriptor/host.rs.
  • Add classify_changed_slot and sync_heap_gpu in descriptor.rs and wire into sync_heaps when VICTORY_GPU_HEAP_MAP=1.

Checks:

  • cargo xtask policy --staged: asset policy: 4 files ok
  • cargo test -p victory-gpu --lib -- heapmap --nocapture: 1 passed; 0 failed
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: finished with 0 warnings
<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5589770373 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/348). Originally posted by [truillo12](https://github.com/truillo12) on 2026-12-01T16:20:22Z. --- Port VICTORY_GPU_HEAP_MAP=1 GPU compute MapReduce descriptor-heap sweep to foxhound: - Add crates/victory-gpu/src/heapmap.rs (compiled on Windows) and wire module in lib.rs. - Add Copied::write_seen in descriptor/host.rs. - Add classify_changed_slot and sync_heap_gpu in descriptor.rs and wire into sync_heaps when VICTORY_GPU_HEAP_MAP=1. Checks: - cargo xtask policy --staged: asset policy: 4 files ok - cargo test -p victory-gpu --lib -- heapmap --nocapture: 1 passed; 0 failed - cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: finished with 0 warnings
Aniseto commented 2026-12-01 16:28:26 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by Aniseto on 2026-12-01T16:28:26Z.


Ran the synthetic heapmap test at 8471db6 on an NVIDIA Blackwell desktop part with 16 GB of VRAM.

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own CARGO_TARGET_DIR, no local patches.

cargo test -q --locked -p victory-gpu --lib -- heapmap --nocapture --test-threads=1
1 passed; 0 failed; 0 ignored; 512 filtered out      (exit 0)

The synthetic test passes here, matching the description. The new switch VICTORY_GPU_HEAP_MAP=1 defaults off and its effect on the descriptor-heap sweep on a real adapter was not measured: no title was run.

Not tested: the full workspace suite, a retail title with VICTORY_GPU_HEAP_MAP=1, heap-sweep CPU-time A/B, Wine, AMD adapters, release profile, game data.

AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7317664744 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/348#issuecomment-7317664744). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-12-01T16:28:26Z. --- Ran the synthetic `heapmap` test at `8471db6` on an NVIDIA Blackwell desktop part with 16 GB of VRAM. Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own `CARGO_TARGET_DIR`, no local patches. ``` cargo test -q --locked -p victory-gpu --lib -- heapmap --nocapture --test-threads=1 1 passed; 0 failed; 0 ignored; 512 filtered out (exit 0) ``` The synthetic test passes here, matching the description. The new switch `VICTORY_GPU_HEAP_MAP=1` defaults off and its effect on the descriptor-heap sweep on a real adapter was not measured: no title was run. Not tested: the full workspace suite, a retail title with `VICTORY_GPU_HEAP_MAP=1`, heap-sweep CPU-time A/B, Wine, AMD adapters, release profile, game data. AI-assisted (OpenCode), model: **MiMo-V2.6-Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified; no game data was used.

Pull request closed

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
readmet3xt-lab/foxhound!348
No description provided.