gpu(card_steps): prune dependency scans and batch constant slot writes #2812
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2812"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Nosheboo on 2026-11-29T17:37:10Z.
Motivation
On upstream
55d06914, baseline telemetry shows the submitter spending2.5–3.3 ms/frameincard_stepsand4.4–5.3 ms/frameincopies & fills. Per-slotconstant_slotcalls repeatedly take/dropSHADER_HEAPSlocks and queryhost()/GetGPUVirtualAddress(), while fill-only submissions still pay full read-range merging andBox<dyn Iterator>overhead inplan_with.Changes
crates/victory-gpu/src/host/card_steps.rs:MOSTfrom12288to16384.Box<dyn Iterator>boxing when planning fill-only/no-copy submissions, while preserving!given[i]checks inin_the_wayandserved_fills.places/heldand usesheld.retain, plus reuses bounded thread-localSLOT_BATCHscratch storage (flush_slot_batch) per worker shard insideland::each_view/land::each_under.plan_handles_fill_only_lazy_behind_coalescing_and_served_placed.crates/victory-gpu/src/descriptor.rs&crates/victory-gpu/src/descriptor/host.rs:constant_slots(using single-heap fast path plus order-preserving per-heap grouping with bounded thread-localCONSTANT_SLOT_SCRATCH) forwarding toHostHeap::constant_at_batch(adapted to upstream's 16-shardretire_resource).constant_at_batch_writes_slots_and_retires_replaced_buffersandconstant_slots_batches_across_heaps_and_handles_empty_or_stale.Attribution
Ported from FoxHound v0.8.1:
readmet3xt-lab/foxhoundcommit6c67166d(PR #36, authorDilim0n,GPL-3.0-or-later). Commit trailers and source doc comments creditDilim0nandreadmet3xt-lab.Verification
upstream/main(41adb551):git diff --check upstream/main..HEADclean; trailers intact (Co-authored-by: Dilim0n,Co-authored-by: readmet3xt-lab).cargo clippy -p victory-gpu --no-deps --all-targets --lockedand--all-featureswith-W clippy::undocumented_unsafe_blocks:0new warnings vsupstream/mainbaseline (41adb551).cargo test -p victory-gpu --lib --locked host::card_steps:: -- --test-threads=1->22 passed; 0 failed; 1 ignoredcargo test -p victory-gpu --lib --locked descriptor:: -- --test-threads=1->106 passed; 0 failed; 2 ignoredCouncil review
Rounds: 4
gpt-6-luna,xhigh)gpt-6-luna,xhigh)gpt-6-luna,xhigh)Created in T3 Code (reviewed by Council: 3× gpt-6-luna on xhigh).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.