NVIDIA Driver and CUDA

Many of the high end workstations come with a NVIDIA graphic card.  With the basic TarHeel Linux 7 installation, it installs the open source Nouveau driver for NVIDIA cards.  However, if the native NVIDIA driver is required, you can use the following steps to remove the original Nouveau driver and install the NVIDIA driver.  Also, we can install CUDA for GPU computing if your NVIDIA card supports.

Before we install NVIDIA driver and CUDA, we need to install NVIDIA software repository definition.  Use the following command to get it.

yum install cuda-repo-rhel7

Then, we get NVIDIA driver and CUDA from NVIDIA software repository.

yum install cuda

By installing CUDA, the required NVIDIA driver will also install as a dependence.

After installation, you need to reboot the machine to take the NVIDIA driver in effect.

For some older machines equipped with older NVIDIA cards, the latest version of NVIDIA driver may not support those legacy NVIDIA video cards.  Then, we will need to install legacy version of NVIDIA driver.  For example, for CCI Lenovo Thinkstation E20 with NVIDIA Quadro FX 580 video card, we will need to install the 340.xx version of NVIDIA driver.

First of all, make sure that we have install ELRepo software repository configuration.

yum install elrepo-release

Then, we get the NVIDIA driver from ELRepo repository.

yum install kmod-mvidia-340xx nvidia-x11-drv-340xx

Unfortunately, NVIDIA driver has conflict with libglamoregl library.  We will need to disable glamoregl from loading by commenting out the line in /usr/share/X11/xorg.conf.d/glamor.conf or we cam simply uninstall xorg-x11-glamor package with this command.

yum remove xorg-x11-glamor

Then, we need to reboot the machine to use the NVIDIA driver.

For detailed information about NVIDIA driver from ELRepo repository, check out the following web page.