UBUNTU18.04 install CUDA

1. Official Tutorial https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu-installation

2. http://developer.nvidia.com/cuda-downloads on downloading the installation package

3. .run file to run the installation file directory, enter accept

sudo sh cuda_10.1.168_418.67_linux.run // here once thought did not respond. In fact, this way, and so on the right

4. I have already installed the Nvidia graphics driver, where driver is not installed

5. installation

  The installation process will not have any information output, such as on the right

  

 

6. Add the environment variable 

we ~ / .bashrc

Add at the end of file

export PATH="/usr/local/cuda-10.1/bin:$PATH"

export LD_LIBRARY_PATH="/usr/lcoal/cuda-10.1/lib64:$LD_LIBRARY_PATH"

Finally, to take effect

source ~/.bashrc

 

7. Input terminal

cd /usr/local/cuda-10.1/samples/1_Utilities/deviceQuery

sudo make

./deviceQuery

 

It appears the Result = PASS is success by installing

 

Guess you like

Origin www.cnblogs.com/penuel/p/11326440.html