Pages

Friday, May 20, 2016

CUDA installation on centOS 7

well! tried, tried and tried...and if you havn't yet been able to install CUDA on your favourite EL 'coz of some dumb dependencies, this post is for your.

In my case dkms troubled me. It stands for Dynamic Kernel Module Support. More about dkms could be read on its project page.

Well if this or any other package troubles you, the best places to find them are either rpmforge or epel community.


here is how you enable rpmForge repository in centOS 7.x (64 bit):

$ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
$ rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm


here is how you enable epel repository on centOS 7.x (64 bit):
 
$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
$ rpm -ivh epel-release-7-6.noarch.rpm
 
 
However, as most EL(s) including centOS borrow their packages from fedora project, you may be lucky to have epel pre-enabled. (fedora acts more like beta release of ELs and only stable packages gets to be part of ELs - may be this is why most of the times fedora has newer packages compared to currently available ELs).

Now, dkms - - well once you have rpmforge enabled, all you have to do is punch in command written below. 

$ yum --enablerepo rpmforge install dkms

Once done goto CUDA download website, and select your disto, and follow the steps there. here, is a screen shot of my selection for centOS 7. 


 Once CUDA installation is complete, you should get screen as follows: