Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optix Denoiser Error #1019

Closed
myaldiz opened this issue Dec 19, 2023 · 3 comments
Closed

Optix Denoiser Error #1019

myaldiz opened this issue Dec 19, 2023 · 3 comments

Comments

@myaldiz
Copy link

myaldiz commented Dec 19, 2023

Summary

Hi there!

I am trying to run the denoiser explained in the tutorials.
However I get the following error:

Critical Dr.Jit compiler failure: jit_optix_check(): API error 7990 (OPTIX_ERROR_INTERNAL_ERROR): "Internal error" in /project/src/render/optixdenoiser.cpp:38.

System configuration

I use docker container with pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel base image. I installed mitsuba using pip as described.

I use NVIDIA 3090ti.

Really appreciate your support if I am missing anything.
Thank you!

@njroussel
Copy link
Member

Hi @myaldiz

Does everything work as expected on the host system (without docker)?

Can you even render a simple scene in docker ?
Here's a one-liner:

python -c "import mitsuba as mi; mi.set_variant('cuda_ad_rgb'); mi.Bitmap(mi.render(mi.load_dict(mi.cornell_box()))).write('tmp.exr')"

My initial guess is that this is due to your choice of docker image. I believe OptiX isn't shipped in most docker images and you should copy over the shared libraries from the host. OptiX and its denoiser needs 3 files: libnvoptix.so.*, libnvidia-rtcore.so.* nvoptix.bin.

Try running the OptiX SDK examples rather than mitsuba, at least we'll know if it is a Mitusba-specific issue.

@merlinND
Copy link
Member

Issue #504 mentions Docker and OptiX, and the solution ended up having to do with the driver capabilities environment variable.
The solution might be as simple as setting NVIDIA_DRIVER_CAPABILITIES=all.

@myaldiz
Copy link
Author

myaldiz commented Dec 20, 2023

I think nvoptix.bin missing in docker container, I mounted it and it works now, I use the following command to create the container:

docker run -it --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/host -v /usr/share/nvidia:/usr/share/nvidia --network=host -e NVIDIA_DRIVER_CAPABILITIES=all --privileged --runtime=nvidia --ipc=host mycontainer bash

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

No branches or pull requests

3 participants