record--on going
2. cuda8.0
(1). Use the following way to install the dependencies
yexin@yexin-Precision-Tower-7910:~$ sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libgl1-mesa-dev libglu1-mesa libglu1-mesa-dev libxi-dev
ps: if use the sudo ./cuda...run, it would go wrong like:
yexin@yexin-Precision-Tower-7910:~$ sudo sh cuda_8.0.61_375.26_linux.runsh: 0: Can't open cuda_8.0.61_375.26_linux.run yexin@yexin-Precision-Tower-7910:~$ sudo sh cuda_8.0.61_375.26_linux.run sh: 0: Can't open cuda_8.0.61_375.26_linux.run yexin@yexin-Precision-Tower-7910:~$ sudo ./cuda_8.0.61_375.26_linux.run sudo: ./cuda_8.0.61_375.26_linux.run: command not found
(2) install cuda
yexin@yexin-Precision-Tower-7910:~$ stop lightdm stop: Unknown job: lightdm yexin@yexin-Precision-Tower-7910:~$ chmod a+x cuda_8.0.61_375.26_linux-run yexin@yexin-Precision-Tower-7910:~$ sudo ./cuda_8.0.61_375.26_linux-run Logging to /tmp/cuda_install_9215.log Using more to view the EULA. End User License Agreement --------------------------
ps: what is lightdm? and it doesn't even work....
then the process will show you the agreement, press "enter" untill you finish all of it.
After finish reading, answer the questions, like the following:
(3) install cuda bug-fix-package "cuda_8.0.61.2_linux-run", like this:
yexin@yexin-Precision-Tower-7910:~$ chmod a+x cuda_8.0.61.2_linux.run yexin@yexin-Precision-Tower-7910:~$ sudo ./cuda_8.0.61.2_linux.run
go on pressing "enter" to finish reading the agreement once more.
Answering the questions like:
Do you accept the previously read EULA? accept/decline/quit: accept Enter CUDA Toolkit installation directory [ default is /usr/local/cuda-8.0 ]: Installation complete! Installation directory: /usr/local/cuda-8.0
At this time , when checking the cuda version, it went wrong, it's because it hasn't been registered, like:
yexin@yexin-Precision-Tower-7910:~$ nvcc --version The program 'nvcc' is currently not installed. You can install it by typing: sudo apt install nvidia-cuda-toolkit
(4) register cuda
yexin@yexin-Precision-Tower-7910:~$ sudo gedit /etc/profile
put these two lines at the back of the file, such as:
save and close it.
then :
yexin@yexin-Precision-Tower-7910:~$ source /etc/profile
Now we finished installing cuda 8.0. You will see the cuda version now: