0

I am using Ubuntu 18.04 and want to install cuda library. But it kept failing so I deleted it all and reinstalled the Ubuntu 18.04. So how can I install cuda libraries on this? Also, when I type in nvidia-smi on the terminal window I can see the name of the GPU. Thank you!

1
  • First you should install the appropriate driver for your Nvidia card (you can get this from here). Second, install Cuda by following this tutorial.
    – singrium
    Aug 8, 2019 at 11:17

1 Answer 1

1

Open the terminal and type:

sudo apt update  
sudo ubuntu-drivers install  
sudo apt install nvidia-cuda-toolkit   
sudo reboot  

After rebooting run the following command to show what Nvidia driver version is installed:

apt policy nvidia-driver-390 nvidia-driver-430

If nvidia-driver-390 is installed run the following command:

sudo apt install nvidia-compute-utils-390  

If nvidia-driver-430 is installed run the following command:

sudo apt install nvidia-compute-utils-430
1
  • 1
    Thanks! =) appreciate it
    – phizap1103
    Aug 8, 2019 at 11:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .