Score:0

How to install Cuda Toolkit Version 11.1 on Ubuntu 20.04?

in flag

I am trying to install cuda toolkit version 11.1 on Ubuntu 20.04 because a neural network I'm using is only compatible with cuda version 11.1, however, the latest version is 11.3. Is there anyway I can install version 11.1 (Haven't installed cuda yet, nvidia driver: 460.73.01).

karel avatar
sa flag
Does this answer your question? [Is there a PPA for having nvidia-cuda-toolkit with the latest cuda (11.1) for Ubuntu 20.04 (Focal)?](https://askubuntu.com/questions/1292120/is-there-a-ppa-for-having-nvidia-cuda-toolkit-with-the-latest-cuda-11-1-for-ub)
Score:0
cc flag

Pick the Nvidia driver you really want (465 is available from the standard repositories if you select it from Software and Updates/additional drivers). Make a cuda11.1 directory somewhere writable by you, make a bin and lib directory under it. Get the 11.1 .run file from Nvidia, skip any offers of an Nvidia driver, and override the system locations with your ...cuda11.1/bin and ...cuda11.1/lib directories. Add the cuda11.1/bin to the start of your PATH, and the cuda11.1/lib to the beginning of your LD_LIBRARY_PATH. That's it. No sudo needed when you execute the run file, and you can add links to any old versions of programs cuda11.1 might need in your cuda11.1/bin directory. No old/odd program/lib versions need be installed in your system areas.

Terrance has a nice answer for details on using the .run file for CUDA installation. It is easy to have multiple CUDA versions available to you, just change your PATH and LD_LIBRARY_PATH. This method avoids the dependency problems with the Nvidia .deb files. and Nvidia drivers.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.