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
#UBUNTU 20.04 UNINSTALL NVIDIA DRIVERS INSTALL#
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. The GCC version that comes with Ubuntu 20.04 is 9.7.0. from Download the corresponding version of cuda and select 18.04.Verify successful installation, command nvidia-smi.me), it is recommended to overwrite the installation directly)
#UBUNTU 20.04 UNINSTALL NVIDIA DRIVERS DRIVERS#
no-nouveau-check does not check Nouveau when installing drivers no-x-check does not check X services when installing drivers no-opengl-files only installs driver files, not OpenGL files.This parameter is most important Restart lsmod | grep nouveau # No output means disable takes effect and will be executed after restartĭownload the Nvidia driver: Search for appropriate driver downloads Remember that BIOS shuts down Secure Boot. Updated ubuntu20.04, the interface was good and the feeling was fine, so I started my Alchemy environmental configuration journey.