Closed stymbhrdwj closed 5 months ago
Hi @stymbhrdwj
Thanks for the detailed issue. I've fixed the significant performance regression you noticed in this commit: https://github.com/mitsuba-renderer/mitsuba3/commit/deebe4c64586c129bb0b0280bbaf376e2315991c
I believe the illegal memory issue has already been fixed, but is not available in the pre-built binaries - you need to compile the project yourself.
Thanks for the fix. I had managed to side-step this issue by creating a constant.exr
environment map that is all ones. It gave the same results as constant
illumination but with improved performance.
Description
I am running the Shape Optimization tutorial provided here where I changed the lighting in the scene to
constant
environment emitter. I am using thecuda_ad_rgb
variant. I encounter the following error after 50 iterations of the Large Steps optimziation.When restricting the optimization to 50 iterations, it works, but running just one iteration after remeshing gives the same error. On a side note, the GPU utilization is extremely low during the optimization process, ~2% volatile GPU utilization as reported by
nvidia-smi
and each iteration takes about 20 seconds to complete, which seems very slow.Without any modifications to the lighting in the scene, the code runs as expected with high GPU utilization and fast runtime, each iteration taking about 0.7 seconds before remeshing, and 2.5 seconds after.
System configuration
System information:
OS: Ubuntu 20.04.6 LTS CPU: Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz GPU: NVIDIA GeForce RTX 4090 Python: 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0] NVidia driver: 530.30.02 LLVM: 12.0.0
Dr.Jit: 0.4.4 Mitsuba: 3.5.0 Is custom build? False Compiled with: GNU 10.2.1 Variants: scalar_rgb scalar_spectral cuda_ad_rgb llvm_ad_rgb
I am using a miniconda3 environment in which I installed Mitsuba and Dr.Jit using pip.
EDIT: I can reproduce this issue on my laptop with the following configuration.
System information:
OS: Arch Linux CPU: AMD Ryzen 7 5800H with Radeon Graphics GPU: NVIDIA GeForce RTX 3050 Ti Laptop GPU Python: 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0] NVidia driver: 550.67 LLVM: 17.0.6
Dr.Jit: 0.4.4 Mitsuba: 3.5.0 Is custom build? False Compiled with: GNU 10.2.1 Variants: scalar_rgb scalar_spectral cuda_ad_rgb llvm_ad_rgb
Steps to reproduce
emitter
inscene_dict
totqdm
to monitor the runtime of each iteration before and after making the change inscene_dict
.