How to install GPU driver for a ubuntu 18.04 instance?

0 votes
related to an answer for: Create a VM instance with GPU.
Nov 7 in GCP by anonymous
• 5,500 points
24 views

1 answer to this question.

0 votes

After you create an instance with one or more GPUs, your system requires device drivers so that your applications can access the device.

To ensure a successful installation, your operating system must have the latest package updates.

  1. Connect to the instance where you want to install the driver.

  2. Select a driver repository for the CUDA Toolkit and add it to your instance.

    curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
    sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
    sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
  3. Update the package lists.

    sudo apt-get update
  4. Install CUDA, which includes the NVIDIA driver.

    sudo apt-get install cuda
answered Nov 7 by Sirajul
• 37,480 points
How do I check if the GPU driver is properly installed?

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create a Google Cloud Filestore instance?

Create an instance by running the instances create command, ...READ MORE

answered Oct 23 in GCP by Sirajul
• 37,480 points
11 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,480 points
35 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 37,480 points
43 views
0 votes
1 answer