Skip to content

Shader Execution Reordering #395

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Shader Execution Reordering #395

wants to merge 3 commits into from

Conversation

njroussel
Copy link
Member

This PR adds dr.reorder_threads(): an explicit way for users to trigger the SER functionality of their GPU without it being tied to a ray-intersection.

Related: mitsuba-renderer/drjit-core#145

The function takes a key argument that acts as the sorting key for the reordering as well as a value argument. The latter solely serves a a way for us to tie the operation into the JIT graph.

Because the shuffling happens under the hood, there really isn't a way to test this properly other than a smoke test. I've added some basic ones in a new `test_reorder.py file.

@njroussel njroussel marked this pull request as ready for review May 19, 2025 08:18
@njroussel njroussel requested a review from wjakob May 19, 2025 08:18
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