To install cuda8.0 to Titan X in the previous way, there will be a circular login issue, so a different installation method
Reference: https://www.jianshu.com/p/002ece426793,http://blog.csdn.net/jzrita/article/details/72887677
Official Https://www.ubuntu.com/download Download the latest version, download it and use the soft disk to make the installation image
After installing the system, update the system
sudo apt-get updatesudo apt-get upgrade
Install dependent packages
sudo apt-get install Libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev Protobuf-compiler sudo apt-get install--no-install-recommends libboost-all-dev sudo apt-get install Libopenblas-dev Liblapack-dev Libatlas-base-dev sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev sudo apt-get install git cmake build-e Ssential
Disable Nouveau
After installing the dependency package, you need to disable Nouveau, only after disabling the Nouveau to install NVIDIA graphics driver, disable the method is to add a disable command in the/etc/modprobe.d/blacklist-nouveau.conf file, You first need to open the file and open it with the following command:
sudo gedit/etc/modprobe.d/blacklist-nouveau.conf
When opened, it finds nothing in the file, writes:
The following prompt may appear in the command window when you Save:
* * (gedit:4243): WARNING *: Set document metadata failed: Setting properties not supported Metadata::gedit-position
Ignore this hint ~, save after closing the file, note that at this time also need to execute the following command to disable Nouveau really effective:
sudo update-initramfs-u
Configuring environment Variables
Also use the Gedit command to open the configuration file:
sudo gedit ~/.BASHRC
After opening, add the following two lines at the end of the file:
Installing the NVIDIA Driver
Using the PPA installation method
CTRL+ALT+F1 entering the TTY command console
sudo service lightdm stopsudo add-apt-repository ppa:graphics-drivers/ppasudo apt-get updatesudo apt-get-y Install Nvidi A-375sudo apt-get-y install Mesa-common-dev freeglut3-devsudo reboot
Installing cuda8.0
Download Cuda_8.0.44_linux.run to the website and copy to the root directory.
sudo sh cuda_8.0.44_linux.run--tmpdir=/tmp/
Problem encountered: Incomplete installation, then execute
sudo apt-get install Freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev LIBGL1-MESA-GLX Libglu1-mesa Libglu1-mesa-devsudo SH cuda_8.0.44_linux.run-silent-driver
Note: Select No when you are prompted to install the Nvidia driver during the installation. Other options yes or default.
Install NVIDIA accelerated Graphics Driver for linux-x86_64 361.62? (y) es/(n) o/(q) uit:n
Declare the environment variables when you are finished installing:
Add the following at the tail end of the. BASHRC:
Export Path=/usr/local/cuda-8.0/bin: $PATH export ld_library_path=/usr/local/cuda-8.0/lib64: $LD _library_path
Make the configuration effective:
SOURCE ~/.BASHRC
Test whether the cuda8.0 is installed successfully reference http://www.cnblogs.com/lindaxin/p/7738784.html
A bug occurred while testing Cuda's sample, and an error occurred/usr/bin/ld:cannot Find-lnvcuvid
The problem is that the library of libnvcuvid.so and libnvcuvid.so.1 is not found.
Workaround:
First, under Linunx, find the relevant paths for both libraries, and then create a soft connection for the two libraries, as follows
sudo ln-s the path to the library/libnvcuvid.so/usr/lib/libnvcuvid.sosudo ln-s the path to the library/libnvcuvid.so.1/usr/lib/libnvcuvid.so.1
If you don't know what to do, just copy the libnvcuvid.so and libnvcuvid.so.1 files to/usr/lib.
Installing CUDNN6
Reference http://www.cnblogs.com/lindaxin/p/7738784.html
Ubuntu16.04+geforce GTX TITAN x+cuda8.0+cudnn6