[Solved]: Deep Learning on GPU and error “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver”

Sometimes during configuration drivers for Deep Learning for GPU Nvidia (CUDA) You have to got error after run nvidia-smi command like below:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver

That means that You selected invalid nvidia driver to installation. How in easy way check what driver is valid?

Solution is very easy and tested on ubuntu (18.4) for latest NVidia GPU RTX 2080 TI Dual

Run the following to get the right NVIDIA driver :

$ sudo ubuntu-drivers devices

Then pick the right and run:

$ sudo apt install nvidia-driver-415

or

$ sudo apt install

Please pay attention that after command nvidia-smi You can see valid CUDA version, that should be installed. Unfortunatelly a lot of documentations bases on old 9.0 driver. For my GPU RTX 2080 TI Dual only CUDA 10 it works perfectly