HOWTO : nVidia CUDA 4.0 RC on Ubuntu 11.04 Desktop

If you have nVidia display card that have several CUDAs on it, you will interested in this tutorial. This time, I would like to show you how to install CUDA 4.0 RC on Ubuntu 11.04 Desktop.



You will experience a faster desktop after the installation of CUDA 4.0. Meanwhile, if you installed SMPlayer, you can playback 1080p videos with the help of vdpau.



Step 1 :



Add the CUDA 4.0 PPA.

sudo add-apt-repository ppa:aaron-haviland/cuda-4.0



Step 2 :



sudo apt-get update

sudo apt-get upgrade




64-bit :

sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler libnpp4 nvidia-cuda-doc libcudart4 libcublas4 libcufft4 libcusparse4 libcurand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers



32-bit :

sudo apt-get install nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-compute-profiler lib32npp4 nvidia-cuda-doc lib32cudart4 lib32cublas4 lib32cufft4 lib32cusparse4 lib32curand4 nvidia-current nvidia-opencl-dev nvidia-current-dev nvidia-cuda-dev opencl-headers



Step 2a :



If you do not have any nVidia driver installed before, you need to do the following command. Otherwise, this step is not required at all.



sudo nvidia-xconfig



Step 3 :



Reboot your system.



Step 4 (Optional) :



To install SMPlayer.



sudo apt-get install smplayer smplayer-translations smplayer-themes



Then set it to use "vdpau" at "Output Driver" at "Preference".



Known issue



Sample codes cannot be compiled successful due to newer C compiler. However, you can download the sample programs which are compiled with C compiler of Ubuntu 10.10. The compiled sample programs are in 64-bit.



sudo apt-get install freeglut3-dev libxi-dev libXmu-dev



tar -xvzf CUDA_4.0_samples_x64.tar.gz

cd CUDA_4.0_samples_x64

./nbody



That's all! See you.