NVlabs / nvdiffrast

Nvdiffrast - Modular Primitives for High-Performance Differentiable Rendering
Other
1.35k stars 144 forks source link

Error: could not select device driver "" with capabilities: [[gpu]] #26

Closed holmes969 closed 3 years ago

holmes969 commented 3 years ago

Hi, I am trying to build up nvdiffrast using the docker. I finished the installation process with no error popped up. When I run ./run_sample.sh ./samples/torch/cube.py --resolution 32, it gives me the error docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. Any help on this? Is cuda11 not supported yet?

P.S. I am using Ubuntu 20 + cuda11 + pytorch 1.8.1

holmes969 commented 3 years ago

This seems to be related to NVIDIA-docker. It works fine after I reinstall nvidia-container-toolkit and restart the docker.