How to install cuda10.01in Ubuntu18.04

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: