How can I free drjit memory pool?
mlamarre opened this issue · 1 comments
mlamarre commented
I'm porting existing code from mitsuba2/enoki, I didn't find the drjit function to release the cuda memory pool which was available in ek.
Thanks!
mlamarre commented
Found the answer in mitsuba3 (maybe only dr.flush_malloc_cache
is required):
dr.kernel_history_clear()
dr.flush_malloc_cache()
dr.malloc_clear_statistics()
dr.flush_kernel_cache()