Kejie's profile◆ Neverland ◆PhotosBlogListsMore Tools Help
    8/18/2009

    CUDA on ubuntu 9.04

    My steps are:

    1. install the 2.6.28.11 server;
    2. without install gnome, "sudo apt-get install build-essential linux-headers-`uname -r`"
    3. wget the cuda 2.3 driver for ubuntu 9.04
    4. at this moment, since no gnome installed, no X-server is on, "sudo sh NVIDIA_LONG_NAME_64_BIT_DRIVER.run"
    5. It asked me if I would like to install 32 bit compatible OPEN GL library, i said yes
    6. Installed Nvidia driver sucessfully
    7. install gnome
    8. reboot
    9. in gnome, run "sudo nvidia-xconfig"

    After done with above, go to System -> Preferences -> Display, it would say something about some feature is not there, it asks whether you want to use alternative driver from your graphics card. Choose "YES", then you can see the Nvidia X driver Utilities Panel

    ONE MORE THING: after changing all the display settings, you would like to save that xorg.config, but the system would tell you it could not remove/create xorg.config.backup. What I did was, clicked on the preview settings, and copied the whole thing, manually changed xorg.config by editor.

    And now you can reboot, and you will see the display setting is still there!

    Add /usr/local/cuda/bin to $PATH, /usr/local/cuda/lib64 to $LD_LIBRARY_PATH, ~/NVIDIA_GPU_Computing_SDK/C to  $NVSDKCUDA_ROOT.You should put them into ~/.bashrc to make it permernant!

    Added some lib such as libglut3, libxi and libmu to make the "make" under SDK run) 
    Then CUDA SDK samples all worked on my system!

    It's time to get some my own test code running!

    Comments (6)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Meng Zengwrote:
    for nothing:)
    Aug. 21
    Kejie Liwrote:
    What do you use ubuntu for? Programming? or Server?
    Aug. 20
    Meng Zengwrote:
    i don't use ubuntu quite a lot. but when i use it, i don't use chinese input:)
    Aug. 20
    Kejie Liwrote:
    佳胤 沈 you should google it :)
    Meng Zeng I use all Operating Systems, except Mac OS. Currently I am experiencing some 64 bits bugs under windows system when I was doing CUDA GPU programming. Now I am doing dual boot. Which Chinese input package are you using?
    Aug. 19
    Meng Zengwrote:
    你也搞ubuntu啊,我还是不习惯,很多window下用惯了的软件,一下没有了,还是不习惯
    Aug. 19
    佳胤 沈wrote:
    这个是啥意思?
    Aug. 18

    Trackbacks

    The trackback URL for this entry is:
    http://likejie.spaces.live.com/blog/cns!57B55FD721D13595!2147.trak
    Weblogs that reference this entry
    • None