We have the clean Ubuntu 14.04 system. We don’t need to install NVidia drivers. We have to download CUDA 7.5 .run file from NVidia site. Open terminal and type:
1 |
sudo stop lightdm |
to stop SeverX.
Then you should press ctrl+alt+F1 to log into your account (enter your name and password).
After that:
1 2 3 |
cd Downloads chmod +x cuda_7.5.18_linux.run sudo ./cuda_7.5.18_linux.run |
to the quick accept without reading this agreement you can press ctrl+c. Then you should accept with all suggestions except of an installing the OpenGL. Reboot the system:
1 |
sudo reboot |
Afer rebooting:
1 |
sudo ./cuda_7.5.18_linux.run |
and do the same.
After define path and variables:
1 2 3 4 |
export CUDA_HOME=/usr/local/cuda-7.5 export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 PATH=${CUDA_HOME}/bin:${PATH} export PATH |
Then test an example:
1 2 3 4 |
cuda-install-samples-7.5.sh ~ cd ~/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery make ./deviceQuery |