Search This Blog

Sunday, 27 January 2019

Installing Cuda 10.0 in Ubuntu 18.04.1 LTS

Cuda 10.0 in Ubuntu 18.04.1 LTS

Go straightforward to

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal

And download the Cuda .deb package from it and follow the next instructions that are in the last link as well.
Installation Instructions:


  1. `sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb`
  2. `sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
  3. `sudo apt-get update`
  4. `sudo apt-get install cuda`    

After doing so, follow the next steps.

Run a terminal and type

sudo gedit .bashrc

for 32 bits include these lines:
export PATH=/usr/local/cuda-6.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:$LD_LIBRARY_PATH

and for 64 bits:
export PATH=/usr/local/cuda-6.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib:/usr/local/cuda-6.5/lib64:$LD_LIBRARY_PATH

save the changes and close the terminal.

There you go.

No comments:

Post a Comment