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, 2019 in GCP by anonymous
• 8,200 points
125 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, 2019 by Sirajul
• 45,960 points
How do I check if the GPU driver is properly installed?

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

How to add a PTR record to my VM instance on gcp?

If your VM instance uses the primary ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 45,960 points
88 views
0 votes
1 answer
0 votes
1 answer

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 45,960 points
126 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, 2019 in GCP by Sirajul
• 45,960 points
105 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 45,960 points
117 views
0 votes
1 answer