nvidia-container-cli: initialization error: cuda error: no cuda-capable device is detected
It is possible that the installation was not done successfully, could you show the result of nvidia-smi? , you should try to install cuda and nvidia-driver in a separate mode, like this:
cuda 9.2 and nvidia-driver 396
CUDA
wget https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda_9.2.148_396.37_linux
sudo chmod 777 cuda_9.2.148_396.37_linux
sudo sh cuda_9.2.148_396.37_linux
Several questions here, do not in the following:
- Install NVIDIA Accelerated Graphics Driver (N)
- Do you want to install the OpenGL libraries? (N)
- Do you want to run nvidia-xconfig? (N)
NVIDIA
- sudo add-apt-repository ppa:graphics-drivers/ppa
- sudo apt update
- sudo apt install nvidia-396
After installation cuda it will be in /usr/local/cuda, and test nvidia driver with nvidia-smi
Install, docker and nvidia-docker too, and test test:
docker run -it --runtime=nvidia nvidia/cuda:8.0-devel
or
nvidia-docker run -it --runtime=nvidia nvidia/cuda:8.0-devel
I hope it's useful, let me know!