Repository navigation
perf(gpu): hash card copy pieces with 64 threads per piece - #23
Merged
Merged
Conversation
The compare and rehash passes over copies in the card's memory walk each 64 KiB piece with a group of 64 threads instead of one thread, after avatarmanz/VIctory-7900XTX f669746. RTX 3080, Ryzen 7 7800X3D, first rooms: our send-and-hash and compare lists 21 -> 3.6 ms of card time a frame, usual frame 149-158 -> 129-135 ms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The compare and rehash passes over copies in the card's memory now walk each 64 KiB piece with a group of 64 threads instead of one thread, 64 steps after one another instead of 4,096. Ported from avatarmanz/VIctory-7900XTX
f669746.Not a TODO item; it is closest to the card-time part of P-6, which it does not finish, so no row is deleted.
Measured
RTX 3080 12 GB (driver 621.24), Ryzen 7 7800X3D, 32 GB, Series X profile, first rooms, diagnostics build, about 5 minutes per run. Both runs had
LEONIDA_CARD_WINDOWS_MB=3072,LEONIDA_WINDOW_UPLOAD=1andLEONIDA_TEXTURE_ROOM_PERCENT=70on.No device loss in either run.
Tested
cargo test --workspace --locked: 591 passed, 0 failed (on the branch this was first made on).cargo test -p leonida-gpu card: 16 passed, including the WARP tests of the compare and the in-flight fetch. One test dispatched one group for four pieces and now dispatches one per piece.cargo check --workspace --all-targetsandcargo xtask policypass on this branch.-D warningsstill reports the C-1 errors already onmain; C-1: resolve clippy warnings in leonida-gpu #20 fixes those.Not behind a switch: the same shader makes and compares the hashes, so only the hash values change, not which pieces count as changed.
AI-assisted.
🤖 Generated with Claude Code