perf: add radix sort for GSplat tile sorting on NVIDIA GPUs#8609
Draft
mvaligursky wants to merge 2 commits intomainfrom
Draft
perf: add radix sort for GSplat tile sorting on NVIDIA GPUs#8609mvaligursky wants to merge 2 commits intomainfrom
mvaligursky wants to merge 2 commits intomainfrom
Conversation
Add a per-tile radix sort pass as a faster alternative to bitonic sort for tiles with ≤1976 entries on NVIDIA GPUs. Uses a 5-pass, 4-bit radix sort with subgroupBallot-based stable scatter, operating entirely in 16KB of workgroup shared memory. - Add workgroup-local radix sort shader using subgroupBallot with .x-only optimization (correct for sgSize <= 32) - Three-tier tile classification when radix is enabled: radix (<=1976), bitonic (1977-4096), large (>4096 via bucket+chunk) - Gate radix sort to NVIDIA only -- Apple shows perf regression vs bitonic; AMD wave64 (sgSize 64) would produce incorrect results - Add GPU vendor detection via capsDefines (VENDOR_NVIDIA, etc.) by overriding initCapsDefines() on WebgpuGraphicsDevice - Rename bitonic sort profiler labels for clarity
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.
Add a per-tile radix sort pass as a faster alternative to bitonic sort for tiles with ≤1976 entries on NVIDIA GPUs. Uses a 5-pass, 4-bit radix sort with subgroupBallot-based stable scatter, operating entirely in 16KB of workgroup shared memory.
Changes:
Performance: