![]() Next, install the CUDA toolkit using the APT package manager as follows. Start off by updating the package lists on your Ubuntu 20.04 instance. Sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*Ĭat /usr/local/cuda/include/cudnn. Method 1: Install CUDA from Ubuntu repository. cuda/include/cudnn.h /usr/local/cuda/includeĬopy all files under cuda/lib64/to the/usr/local/cuda/lib64 folder and add read permissions: sudo cp. Cudnnįrom To download cuDNN Library for Linux, you need to log in.Īfter downloading the unzipped file, copy the cuda/include/cudnn.h file to the usr/local/cuda/include folder. Now that the cuda installation is complete, enter the nvcc-V command to view the cuda information 3. Update environment variable configuration source ~/.bashrc The cuda package is driven by its own graphics card, so this step removes the option to install the graphics card driver by pressing the space and then chooses installĮnter the gedit ~/.bashrc command to open the file, enter the following statement at the end of the file, and save.Įxport PATH=/usr/local/cuda-10.2/bin$ The command looks at the default version of gcc and you can see that the current default version of gcc is 7, which means the switch was successful. Sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-9 50Įnter at this time sudo update-alternatives -config gcc Use update-alternatives for version switching, enter the following command: sudo update-alternatives -install /usr/bin/gcc gcc /usr/bin/gcc-7 100 Looking at the gcc version, you can see that there are 7 and 9 versions in the current system ls /usr/bin/gcc* ![]() You need to add gcc7 to install cuda10.2. To confirm the installation, press Y and then press .To install CUDA v10 from the official package repository of Ubuntu 20.04 LTS, run the following command: sudo apt install nvidia-cuda-toolkit. The GCC version that comes with Ubuntu 20.04 is 9.7.0. CUDA version 10 is available in the official package repository of Ubuntu 20.04 LTS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |