My little white, I would like to express my sincere thanks to the great classmates who helped ~
Record a useful website
http://blog.csdn.net/hungryof/article/details/51557666
View cuda version:
nvcc -V
I checked this website when I modified the cuda version and modified the profile file. Should be a valid website
http://blog.csdn.net/fieldoffier/article/details/54017297
The approximate steps are as follows:
If there is nouveau , disable it:
sudo vim /etc/modeprobe.d/blacklist.conf
blacklist new
sudo update-initramfs -u
After restarting:
service lightdm stop
Install the default version of g++ and make
No need to modify the path , you need to set LD_LIBRARY_PATH :
(This may be the case) Add /usr/local/cuda-8.0/lib64 to /etc/id.so.conf , and then run idconfig and it will be OK . You need to check the specific added statement
The graphics card driver does not need to be installed separately, because when you install cuda , there will be an option to install or not. If you choose yes, it’s OK .
Download cuda , sudo sh *.run . There is an option of xserver that seems to be selected, it is OK by default
After installation, restart and run:
nvidia-smi
nvidia-settings
If there is no problem, install it
The configuration used is: gtx 750 ti, ubuntu 16.04 server, cuda 8.0
Record a few commands that might be useful
Disable xserver
https://ubuntuforums.org/showthread.php?t=1916961&s=d3b9b9b19cde3adac97c89d480d74462
Uninstall Nvidia driver
sudo dpkg --configure -a
sudo /usr/bin/nvidia-uninstall
sudo apt-get purge nvidia-*
sudo /etc/init.d/lightdm stop (close the window)
sudo /etc/init.d/lightdm restart (restart window)
sudo systemctl stop lightdm (another command to close the window)
It is said that the Nvidia graphics driver is disabled, but it does not seem to have any effect.
sudo gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
To a tutorial first - . -
https://jmydurant.github.io/blog/tech/2016/08/01/build_env.html
http://blog.csdn.net/fieldoffier/article/details/54017297
path
http://www.cnblogs.com/trying/archive/2013/06/07/3123577.html
blog.csdn.net/g0m3e/article/details/51420565http://blog.csdn.net/g0m3e/article/details/51420565
Install cudnn :
http://www.itwendao.com/article/detail/173913.html