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
• 19,610 points
1,793 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
• 59,230 points
How do I check if the GPU driver is properly installed?

Related Questions In GCP

0 votes
0 answers

how to install virtualenv on Ubuntu 20.04 GCP instance?

I am trying to install python3 virtualenv. ...READ MORE

Nov 8, 2022 in GCP by Ashwini
• 5,430 points
661 views
0 votes
1 answer

Unable to install NVIDIA driver on various GCP Ubuntu VM's with Tesla K80 GPU

The mistake you are making here is ...READ MORE

answered Apr 5, 2022 in GCP by Korak
• 5,820 points
858 views
0 votes
1 answer

Unable to install NVIDIA driver on various GCP Ubuntu VM's with Tesla K80 GPU

If you've installed the driver so many ...READ MORE

answered Mar 20, 2022 in GCP by Korak
• 5,820 points
624 views
0 votes
1 answer
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
• 59,230 points
2,613 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
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,020 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP