Tutorial for CUDA 7.5 Installation Based on CentOS 7
This turorial is written in English. If you wish a PDF rather than it on web. Please refer to my CUDA-Theano-Installation.
1. Prepare CentOS 7 distribution, with Python 2.7.* already installed
Internet connection available is also required.
2. Install NVIDIA graphic driver for Linux system
NVIDIA graphic driver for Linux system will be installed individually before the CUDA installation, so we download the driver according to its actual type and proper operating system (Linux, 64bit / 32bit).
Taking GT 640 as an instance, we download NVIDIA-Linux-x86_64-361.42.run. Open a terminal (better as root),
# uname -r
3.10.0-327.el7.x86_64 ; the distribution varies from person to person, so remember it
# yum install gcc kernel-devel kernel-headers
Add two lines in both files as follows,
# vim /etc/modprobe.d/blacklist.conf
# vim /lib/modprobe.d/dist-blacklist.conf
...
blacklist nouveau
options nouveau modeset=0
Remake initramfs image,
# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
# dracut /boot/initramfs-$(uname -r).img $(un