![]() Then, run “update-alternatives –config”.Sudo update-alternatives -install /usr/local/cuda cuda /usr/local/cuda-10.2 100 Sudo update-alternatives -install /usr/local/cuda cuda /usr/local/cuda-11.0 90 Sudo update-alternatives -install /usr/local/cuda cuda /usr/local/cuda-11.5 80 First, we need to run “update-alternatives –install” I want to prioritize 10.2, so the number is large (100) among the three.We will use this function to switch different versions of CUDA.Ubuntu has “update-alternatives” with which we can change versions of software easily.| 0 N/A N/A 836 G /usr/lib/xorg/Xorg 60MiB | | GPU GI CI PID Type Process name GPU Memory | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. Check if the system recognizes CUDA using nvidia-smi.Sudo apt -y install -no-install-recommends cuda-10-2 cuda-11-0 cuda-11-5 Sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 On April 28 2022, Repository key for NVIDIA was updated, so I updated the commands below. When installing CUDA, it might be better to use –no-install-recommends in order to install only necessary files. So I decided to install 10.2, 11.0, and 11.5 which is the latest one. As of January 3rd, 2022, you can install cuda from 10.0 to 11.5. I made some modifications to install various versions of CUDA. Below is the screenshot of instruction. ![]() Actually, if you want to use CUDA 10.2, you MUST use repository for Ubuntu 18.04, because repo for 20.04 doesn’t include CUDA 10.2. This page is archive, so it provides only Ubuntu 18.04, but it works well with Ubuntu 20.04. ![]() As of CUDA 10.2, cuda-10.2-download-archive shows everything. NVIDIA provides a good page for the installation of various versions of CUDA.Sudo apt install linux-headers-$(uname -r) I explored a way to use eddy_cuda10.2, PyTorch and Tensorflow concurrently. FSL 6.0.5 ships eddy_cuda10.2 which literally uses CUDA 10.2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |