NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. Why?
You have to enable the GPU first in the Notebook settings.
You can easily do it by clicking on Edit > Notebook settings
and selecting GPU as hardware accelerator.
That should be it.
Error: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver
Note: this answer is from 2018 and works for Ubuntu 16.04, which is very much out-of-date. Don't try this on recent Ubuntu versions.
Try
- Download the driver from here
sudo apt-get purge nvidia*
- To remove your current installationsdpkg -i nvidia-diag-driver-local-repo-ubuntu1604_375.66-1_amd64.deb
- installing what you downloaded earliersudo apt-get update
sudo apt-get install cuda-drivers
After this, go on and reboot your computer.
When it's up again, the nvidia-smi
command should run smoothly
Related Topics
Bash Cut Columns to One File and Save onto The End of Another File
Where M Flag and O Flag Will Be Stored in Linux
How to Clear Docker Task History
Terraform - Unable to Run Multiple Commands in Local Exec
Process Niceness (Priority) Setting Has No Effect on Linux
Why Can't I Install Any Packages with Ghc 7.8.4 on Raspberry Pi
Git Error: Cannot Handle Https
How to Compile Redis So That I Can Upload and Run It on Shared Hosting
Apache 2.4.23 Undefined Reference to Crypto_Malloc_Init
How to Handle Error/Exception in Shell Script
Qt Does Not Create Output Files in Debug/Release Folders in Linux
Qt - How to Detect Whether The Application Is Running on Gnome or Kde
Programmatically Set Custom Folder/Directory Icon in Linux
Why Does Bash Not Stop on Error for Failures in Sequence of Short-Circuited Commands
What Happens If There Are Too Many Files Under a Single Directory in Linux