mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
601 stars 45 forks source link

Add Python bindings for the jit_scope functions #290

Closed dvicini closed 2 months ago

dvicini commented 2 months ago

This adds the missing Python bindings for the Jit scope calls. The motivation for this it to allow users to explicitly separate different Python threads and their CSE.

I added some documentation and a simple test. What remains an open TODO for the future would be to more rigorously document Dr.Jit's thread safety behavior somewhere in the documentation.