Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop over cells in order by cost to reduce divergence #1683

Open
BenWibking opened this issue Dec 8, 2024 · 0 comments
Open

loop over cells in order by cost to reduce divergence #1683

BenWibking opened this issue Dec 8, 2024 · 0 comments

Comments

@BenWibking
Copy link
Collaborator

BenWibking commented Dec 8, 2024

It may be possible to reduce load imbalance across a warp by sorting cells based on their cost (rhs evaluations or substeps), and then looping through them based on this sorting. Then, cells with similar costs to burn are computed together across the same warp, reducing SIMD divergence.

This is mostly intended for chemistry networks, where the cost is mostly a function of density (which sets how close to equilibrium the network is).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant