Jade Dungeon

notes

Installing CUDA Toolkit 7.5 on Ubuntu 14.04 Linux

CUDA Repository

加PPA源:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

或者是从官网下载DEB包:

https://developer.nvidia.com/cuda-downloads

$ sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb 
$ sudo apt-get update

CUDA Toolkit

Then you can install the CUDA Toolkit using apt-get.

$ sudo apt-get install cuda

You should reboot the system afterwards and verify the driver installation with the nvidia-settings utility.

Environment Variables

As part of the CUDA environment, you should add the following in the .bashrc file of your home folder.

export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
export PATH=${CUDA_HOME}/bin:${PATH} 

CUDA SDK Samples

Now you can copy the SDK samples into your home directory, and build a test sample.

cd /usr/local/cuda/samples/1_Utilities/deviceQuery
sudo make
./deviceQuery

If everything goes well, you should be able to verify your CUDA installation by running the deviceQuery sample.