This note is derived from How to install Nvidia CUDA environment in RHEL 6? It works for me.
Step 1: Install kernel
# yum install kernel-devel kernel-headers -y
Step 2: Download and Install Cuda Toolkit
Step 3: Configure CUDA Toolkit
# echo -e "/usr/local/cuda-7.5/lib64\n/usr/local/cuda-7.5/lib" > /etc/ld.so.conf./cuda.conf # echo "export PATH=/usr/local/cuda-7.5/bin:$PATH" > /etc/profile.d/cuda.sh # /sbin/ldconfig
Step 4: Disable Noveau Driver
# echo -e "\nblacklist nouveau" >> /etc/modprobe.d/blacklist.conf # dracut -f /boot/initramfs-`rpm -qa kernel --queryformat "%{PROVIDEVERSION}.%{ARCH}\n" | tail -1`.img `rpm -qa kernel --queryformat "%{PROVIDEVERSION}.%{ARCH}\n" | tail -1`
Step 5: Reboot the Server
Step 6: Check Supported Nvidia Card
[root@comp1 ~]# lspci -d "10de:*" -v 84:00.0 3D controller: NVIDIA Corporation GK110BGL [Tesla K40m] (rev a1) Subsystem: NVIDIA Corporation Device 097e Flags: bus master, fast devsel, latency 0, IRQ 64 Memory at c9000000 (32-bit, non-prefetchable) [size=16M] Memory at 3c400000000 (64-bit, prefetchable) [size=16G] Memory at 3c3fe000000 (64-bit, prefetchable) [size=32M] Capabilities: [60] Power Management version 3 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [78] Express Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [128] Power Budgeting <?> Capabilities: [420] Advanced Error Reporting Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?> Capabilities: [900] #19 Kernel driver in use: nvidia Kernel modules: nvidia, nouveau, nvidiafb