Skip to content

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 force-pushed the ser branch 2 times, most recently from 7673107 to 3467fc7 Compare May 19, 2025 08:18
@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
@njroussel njroussel merged commit 831fbf9 into master Jun 6, 2025
@njroussel njroussel deleted the ser branch June 6, 2025 08:19
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.

2 participants