NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.43k stars 360 forks source link

torch.cuda.is_available() returns False in docker #429

Open yl3639 opened 2 years ago

yl3639 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

The docker I build using the Dockerfiles that provided in the git has cuda under docker:/usr/local, but when I try torch.cuda.is_available() it returns False and when I try to run script on my GPU server, it returns this error

image

To Reproduce Steps to reproduce the behavior. If the code is not attached and cannot be reproduced easily, the bug report will be closed without any comments.


Expected behavior A clear and concise description of what you expected to happen.


Desktop (please complete the following information):

wget -q https://raw.githubusercontent.com/NVIDIA/MinkowskiEngine/master/MinkowskiEngine/diagnostics.py ; python diagnostics.py

Additional context Add any other context about the problem here.

evelkey commented 2 years ago

Run the container with docker run -it --gpus all or docker run -it --runtime=nvidia.