FoundationPose icon indicating copy to clipboard operation
FoundationPose copied to clipboard

Docker: could not select driver

Open utsavrai opened this issue 1 year ago • 1 comments

Running bash docker/run_container.py results into following error:

bash docker/run_container.sh 
foundationpose
access control disabled, clients can connect from any host
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

I have installed the following which seems to be a common suggestion for this issue but it didn't work as well.

sudo apt-get install -y nvidia-container-toolkit

Also following are my driver and cuda output:

nvidia-smi

Mon May  6 15:17:35 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.67                 Driver Version: 550.67         CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   42C    P0              7W /   80W |       9MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2939      G   /usr/lib/xorg/Xorg                              4MiB |
+-----------------------------------------------------------------------------------------+

nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Fri_Jan__6_16:45:21_PST_2023
Cuda compilation tools, release 12.0, V12.0.140
Build cuda_12.0.r12.0/compiler.32267302_0

utsavrai avatar May 06 '24 14:05 utsavrai

did you reboot your computer after installing nvidia-container-toolkit?

wenbowen123 avatar May 08 '24 04:05 wenbowen123

yes I did reboot but that didn't help as well. The docker option didn't work for me, I got the conda option working with cuda 11.8 on a mobile RTX 4060 GPU on Ubuntu 22.04.

utsavrai avatar May 09 '24 11:05 utsavrai