Skip to content

feat: more p2g and grid sort optimizations#5

Merged
sebcrozet merged 3 commits into
mainfrom
intra-blocks-sort
Jun 24, 2026
Merged

feat: more p2g and grid sort optimizations#5
sebcrozet merged 3 commits into
mainfrom
intra-blocks-sort

Conversation

@sebcrozet

Copy link
Copy Markdown
Member

This further optimizes the p2g transfer by sorting particles inside the block along the z-axis. This makes it more likely for full warps to only touch a 4x4x3 neighborhood instead of a full 4x4x4 chunk.

This also reduces the amount of GPU hash-map lookup by having chunks identifying and caching their neighbor chunk indices instead of doing a 2x2x2 chunk lookup from each particles.

@sebcrozet sebcrozet force-pushed the intra-blocks-sort branch from 46c099a to 817c66c Compare June 24, 2026 09:04
@sebcrozet sebcrozet merged commit 7603857 into main Jun 24, 2026
5 checks passed
@sebcrozet sebcrozet deleted the intra-blocks-sort branch June 24, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant