1. https://developer.nvidia.com/cuda-downloads
download base installer
2. Execute the following code
- sudo dpkg-i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
- sudo apt-key add /var/cuda-repo-< version> Pub (for success in the previous step)
- sudo apt-get update
- sudo apt-get install cuda
3. Add environment variable
opens in ~ directory. Bashrc file: gedit ~/. Bashrc
Add two lines to the end of the file:
the export PATH =/usr/local/cuda – 10.1/bin: $PATH </ p>
export LD_LIBRARY_PATH =/usr/local/cuda – 10.1/lib64: $LD_LIBRARY_PATH </ p>
finally execute: source ~/. Barshrc
4. Check whether
has been installed successfully
nvcc -V
if output
nvcc: NVIDIA…..
Copyriht …
Built on…
Cuda version information, etc.
installed successfully
Read More:
- How to install postman tool in Ubuntu 16.04
- How to install scikit learn and other scientific computing libraries in Ubuntu 16.04
- FCOS No CUDA runtime is found, using CUDA_HOME=’/usr/local/cuda-10.0′
- How to uninstall CUDA driver and toolkit in Mac OS X?
- Install Java runtime JRE in Ubuntu 16.04
- [Linux] failed to install libudev dev in Ubuntu 18.04
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- How to generate and view SSH keys in Ubuntu 16.04
- [solution] install L2TP and related settings in Ubuntu 18.04
- How to search files or folders in Ubuntu
- How to configure OpenGL with CodeBlocks in Ubuntu
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- How to Install Python 3 in Centos7 Quickly
- How to Fix Error in python3 | PIP install Dlib
- How to manually upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS, Part I
- Error handling of apt instruction e: unmet dependencies. Try ‘apt — fix broken install’ with no packages in Ubuntu 20.04
- How to Fix ubuntu phpmyadmin error: “Connection for controluser as defined in your configuration failed”
- (Solved) pytorch error: RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED (install cuda)
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- how to install chrome in kali linux