Pre-InstallationUpdate packages
Install general deps, to install gcc, g++, Peal and other necessary packages
Install wget
Disable the Nouveau driversThe Nouveau drivers are loaded if the following command prints anything
Create a file at /etc/modprobe.d/blacklist-nouveau.conf
Fill the file with following contents: (if copying, copy line by line and enter the newline by yourself, or it will not active)
Check the file content
Regenerate the kernel initramfs, reboot system and verify that the Nouveau drivers are not loaded
Prepare KernelThe order is a little different from that on CentOS 6.x. dkms is installed at the last stage.
Install Cuda ToolkitGo to this page https://developer.nvidia.com/cuda-downloads. Select Linux, x86_64, CentOS, 7, runfile(local), Download. Check the MD5 for your downloaded file. Recommended Version: cuda_7.5.1_linux.run Transfer the cuda_7.5.18_linux.run to your system
Change the system up level to runlevel3
Run the installer and follow the on-screen prompts
Options for the run file
Environment setup
Add following two lines at the end of the file
It is better to reboot the system after installation Compile and run Cuda SamplesRelogin to the terminal, /opt is the path of Cuda samples you entered before
detect the device
base function
test cuBLAS
|