CUDA on Ubuntu 9.10/Linux Mint Helena

If you check on the CUDA site, you will notice that there’s no download for the latest version of Ubuntu; Ubuntu 9.10 or Linux Mint Helena which is based on Ubuntu 9.10. Consequently, many webpages have popped up on the web saying how to go about with Ubuntu 9.10.

I tried my luck at those but I couldn’t get any of these to work – they all messed up my display – until I stumbled on Przemoc’s wiki (last article on the page). The solution proposed there is much more elegant and easier than any I’ve seen yet since it’s based on modifying the sources of aptitude to get the latter to download the CUDA drivers for you which is the hardest part of the installation.

Once this is done, installing the CUDA toolkit and SDK is childplay and it works flawlessly with my GTX 260 graphics card even with twinview. That was CUDA 2.3 by the way.

The cool link once again: Przemoc’s wiki (last article on the page)

or the relevant part of the page copied here

  1. nVidia 190 drivers

    sudo add-apt-repository ppa:nvidia-vdpau/ppa
    sudo apt-get update
    sudo apt-get install nvidia-190-modaliases nvidia-glx-190 nvidia-settings-190
  2. GNU Compiler Collection 4.3

    sudo apt-get install gcc-4.3 g++-4.3
    sudo update-alternatives --remove-all gcc
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 43 --slave /usr/bin/g++ g++ /usr/bin/g++-4.3 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.3
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 44 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.4
    sudo update-alternatives --config gcc    # choose gcc 4.3
  3. CUDA SDK requirements

    sudo apt-get install libglut-dev libxi-dev libxmu-dev

3 responses to “CUDA on Ubuntu 9.10/Linux Mint Helena

  1. Hi Pascal,

    I’m looking to install the CUDA SDK, but can’t compile the example code – I think I’m missing a dependency. Make fails with:

    /usr/bin/ld: cannot find -lGL
    collect2: ld returned 1 exit status
    make[1]: *** [../../bin/linux/release/bicubicTexture] Error 1
    make[1]: Leaving directory `/home/rob/NVIDIA_GPU_Computing_SDK/C/src/bicubicTexture’
    make: *** [src/bicubicTexture/Makefile.ph_build] Error 2

    If you came across this yourself, I’d be very grateful for pointers. If you don’t know how I’ve broken it, don’t worry. I’m sure I’ll figure it out eventually🙂
    -r

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s