How to install CUDA 9.1 on Mint 18.3?

6,358

I have cuda 9.1 installed on Minty 18.3 with nvidia 387 390 drivers.

This is what I did:

  1. Use the driver manager to install nvidia 390 387 (for some reason, 390 isn't working). Note the pic shows 387, but 390 works now.

    enter image description here

Get the nvidia repo from:

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/cuda-repo-ubuntu1704_9.1.85-1_amd64.deb

Install nvdia's repo and repo key for ubuntu 17.04:

sudo dpkg -i cuda-repo-ubuntu1704_9.1.85-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub

Update apt's software index

sudo apt-get update

Install cuda

sudo apt-get install cuda

Edit: one other thing. If you build the samples, you need to set GLPATH environment variable to /usr/lib: export GLPATH=/usr/lib before you run make in the samples dir.

see: https://stackoverflow.com/a/34648972/356011

Share:
6,358

Related videos on Youtube

Munkhbaatar Adiya
Author by

Munkhbaatar Adiya

Updated on September 18, 2022

Comments

  • Munkhbaatar Adiya
    Munkhbaatar Adiya over 1 year

    I'm running Linux Mint 18.3 with the Cinnamon desktop environment, and I want to install CUDA 9.1 and NVIDIA drivers. How can I do that?