Results 1 to 2 of 2

Thread: how to install cuda 4.0 or 4.1 RC2 on opensuse 12.1?

  1. #1
    Join Date
    May 2011
    Location
    Czech Republic
    Posts
    29

    Default how to install cuda 4.0 or 4.1 RC2 on opensuse 12.1?

    How to install cuda 4.0 or 4.1 (recent stable version) on opensuse 12.1 64bit to be able compile every demos apps from CUDA SDK?

    CUDA Toolkit 4.1 | NVIDIA Developer Zone
    CUDA Toolkit 4.0 | NVIDIA Developer Zone

    The cuda supported gcc compiler version looks like <4.5.x.

    Thanks for any help.

  2. #2

    Default Re: how to install cuda 4.0 or 4.1 RC2 on opensuse 12.1?

    I have just installed CUDA Toolkit 4.1 on openSUSE 12.1 64bit, and successfully built the examples in the SDK. Well, there were lots of warnings, but the build completed. As openSUSE 12.1 is not supported, I had to jump through a couple of hoops. But even a noob like me could do it!

    1) You need an earlier version of gcc. I got gcc43 from the repository at download.opensuse.org/repositories/devel:/gcc/openSUSE_12.1/.

    2) You need the nvcc compiler to use the earlier versions of gcc. As root, I created a folder /opt/gcc43/ and added links to the gcc43 compilers, i.e.

    Code:
    ln -s /usr/bin/gcc-4.3 /opt/gcc43/gcc
    ln -s /usr/bin/g++-4.3 /opt/gcc43/g++
    To point nvcc to those links, i edited (as root) /usr/local/cuda/bin/nvcc.profile to include the line ...
    Code:
    compiler-bindir = /opt/gcc43/
    3) If you try to make the SDK samples now, the linker will not find all the libraries. Read the Release notes! You need to add some more links to /usr/lib64, things like
    Code:
    ln -s /usr/lib64/libGLU.so.1 /usr/lib64/libGLU.so.1
    ... and a few other libraries. For me, just GLU, glut, Xmu and Xi.

    Presto - it worked! Good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •