Installing CUDA in Fedora 19
Submitted by sjs205 on

For one of my MSc modules, GPU programming, we are required to use CUDA to program NVIDIA GPUs, I already have a CUDA compatable GPU as follows:
$ lspci | grep NVIDIA 01:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)
So all I needed was to install CUDA. Initially I tried to do this using the NVIDIA*.run file but this would always segfault, and hence, I had no luck with it. I then tried the .RPM file, I had some success with this, however, it was not a straightforward install.
So, I started by installing the RPM as follows:
$ sudo rpm -i cuda-repo-fedora18-5.5-0.x86_64.rpm
This RPM installs the 'cuda' repo and allows CUDA to be installed using yum, however, when I tried to install I received a number of dependency problems, as follows:
$ sudo yum install cuda ... Transaction check error: file /usr/share/man/man1/nvidia-xconfig.1.gz from install of nvidia-xconfig-319.37-27.fc18.x86_64 conflicts with file from package xorg-x11-drv-nvidia-1:325.15-1.fc19.x86_64 file /usr/bin/nvidia-settings from install of nvidia-settings-319.37-30.fc18.x86_64 conflicts with file from package xorg-x11-drv-nvidia-1:325.15-1.fc19.x86_64 file /usr/share/applications/nvidia-settings.desktop from install of nvidia-settings-319.37-30.fc18.x86_64 conflicts with file from package xorg-x11-drv-nvidia-1:325.15-1.fc19.x86_64 file /usr/share/man/man1/nvidia-settings.1.gz from install of nvidia-settings-319.37-30.fc18.x86_64 conflicts with file from package xorg-x11-drv-nvidia-1:325.15-1.fc19.x86_64
The main issue here is that I had installed the NVIDIA driver from the rpmfusion repo, and as such, there was a conflict between this and the CUDA requirements. To proceed with the install I had to remove the rpmfusion drivers and try again with the rpmfusion repo disabled as follows:
$ sudo yum remove xorg-x11-drv-nvidia kmod-nvidia ... $ sudo yum install cuda --disablerepo=rpmfusion* ...
This then succeeded and allowed me to build some of the CUDA samples, such as the Mandelbrot set example seen below

Add new comment