mitsuba-renderer / drjit

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

Crash in optimization after some iterations #117

Closed SouthEndMusic closed 1 year ago

SouthEndMusic commented 1 year ago

Hi,

I'm running a PyTorch geometry optimization pipeline including Mitsuba with wrap_ad. The optimization runs fine for 144 iterations, but then the Python kernel crashes with the following error:

Critical Dr.Jit compiler failure: jit_optix_compile(): optixModuleGetCompilationState() indicates that the compilation did not complete succesfully. The module's compilation state is: 0x2363.

I could provide a minimal example if requested, but hopefully the problem can be resolved without.

Here's some system information:

Thanks in advance!

njroussel commented 1 year ago

Hi @SouthEndMusic

This might have been fixed in https://github.com/mitsuba-renderer/drjit-core/pull/44, as it seems similar to: https://github.com/mitsuba-renderer/mitsuba3/issues/408. This hasn't be pushed into a public release yet, but should be available in the next release (later today hopefully).

njroussel commented 1 year ago

The new version is out, please tell us if it fixes the issue :pray:

SouthEndMusic commented 1 year ago

It works now with drjit==0.4.0 and mitsuba == 3.2.0, thanks!