WIP: [pr-performance][INTEL] Card steps: gather the reads into the buffer between in one dispatch per host copy #49
Loading…
Reference in a new issue
No description provided.
Delete branch "kisekinopureya/Darner:kisekinopureya/pr/card-steps-gather"
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?
Contributor role (optional)
What it changes
When flights in the air hold a submission up, its copies and fills are done on the card: the places
they read are first copied into a 4 MiB buffer of ours, one
CopyBufferRegioneach. On an Arc A770in the chase after the prison, 2,000-3,300 of these a frame (a few hundred bytes each, the title's
constants) took the submitting thread 120-206 ms a frame to record, about 65 us a copy, all of it in
the driver. With late wait 3 (up to 9,600 steps a frame) the stage took 1.2-2.8 s a frame.
With
DARNER_CARD_STEPS_GATHER(on by default on an Intel card, throughINTEL_DEFAULTS):A new frame-rate line gives the reads gathered, the dispatches and the reads still copied.
DARNER_CARD_STEPS_GATHER=0turns it off.How it was tested
21e9b74622(rebased onto1a5286a7; the gates re-run there) (gates); the game on the same change before the rebase (base branch a90712d0 on the oldmain28ef3ddb), built in a worktree.cargo clippy --workspace --all-targets --locked -- -D warnings: clean.--all-features: clean.DARNER_D3D12_DEBUG=1 cargo test --profile diag -p darner-gpu --features diagnostics --lib card_steps:::31 passed, at
720719e1feafter the rebase too. This includes the newthe_gather_reads_what_copies_would(aligned and unaligned reads, two levels, bytes comparedwith what copies give), with no debug-layer messages.
cargo xtask policy: ok (base branch).DARNER_XESS=1 DARNER_XESS_MODE=ultraperformance,same route both times (the prison, the chase after the QTE, driving).
copied.
DARNER_SCREEN_WAIT_MS=0) lost the device after about 11.5and 13.5 minutes. The second was traced: it stopped in a mesh-shader draw, not in a gather
dispatch (the traced run in the shared record).
recordalone (a throwaway timing test, not in the PR):(80 s in 3 minutes).
cargo test --release --features diagnosticsmakes rustc crash with an access violation onthis machine while building the test binary (twice; not checked without this change), so the diag
profile was used.
Checklist
main.docs/asset-policy.md.INTEL_DEFAULTSinswitch.rs), then #43, #33, #31Checked for overlap
main) also changescrates/darner-gpu/src/host/card_steps.rs.🤖 Generated with Claude Code
720719e1feto21e9b74622View 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.