This guide assumes a 64 bit architecture First install gcc 4.6.3 using this guide

Compiling GCC 4.6.3

Ensure that your kernel and selinux policy are up to date

yum update

Install RPM fusion

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm

Install the nvidia graphics driver

yum install akmod-nvidia xorg-x11-drv-nvidia-libs

We need to get the cuda sdk, in this case get the version for fedora16

CUDA SDK download

install prerequisites for cuda sdk

yum install glut-devel

run chmod to make it executable

chmod +x cuda_5.0.35_linux_64_fedora16-1.run

Install the cuda sdk, say no when asked to install driver

./cuda_5.0.35_linux_64_fedora16-1.run

Export the correct paths, add them to your .bashrc file to be permanent

export PATH=$PATH:/usr/local/cuda-5.0/bin
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib64:/lib:$LD_LIBRARY_PATH