Skip to content

Instantly share code, notes, and snippets.

@bunnyDrug
Last active June 13, 2021 21:23
Show Gist options
  • Save bunnyDrug/28553ddff8062d963486d8d77a6cd6e2 to your computer and use it in GitHub Desktop.
Save bunnyDrug/28553ddff8062d963486d8d77a6cd6e2 to your computer and use it in GitHub Desktop.
How to get CUDA installed and working for a GTX 560 TI in Linux

Nvidia GTX 560Ti CUDA install Linux.

Check and understand the compute version required of your GPU on Nvidia's website. (GTX 560 TI = 2.1) https://developer.nvidia.com/cuda-gpus#compute Reference your compute version with the the CUDA toolkit documentation you wish to download. You can find the compute version that the toolkit offers in this page - 'Programming Guide' > 'I. Compute Capabilities'. The archive url should allow you to change the version to compare quickly what you need. https://docs.nvidia.com/cuda/archive/8.0/cuda-installation-guide-linux/index.html#post-installation-actions I learned that support for my GPU was dropped after CUDA 8.0 was released so, we will be installing v8.0.

I will be specifically speaking about CUDA 8.0 install from here on. (installing on Ubuntu 20.04)

add the xenial repo to apt

This is to get an older packaged version of gcc 5.3 which is required (check the system requirements page in the toolkit document)

$ sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ xenial main'

$ sudo apt update

Install gcc and g++

$ sudo apt install gcc-5

$ sudo apt install g++-5

Update gcc and g++ so the installer can find the correct version

$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10

$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10

Download the CUDA 8.0 toolkit.

Do not run the install yet.

$ sh ./cuda_8.0.61_375.26_linux.run --tar mxvf $ sudo cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base $ export $PERL5LIB

Finally install from the downloader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment