Results 1 to 9 of 9

Thread: Ubuntu 10.04 and CUDA

  1. #1
    Join Date
    Mar 2010
    Posts
    54

    Ubuntu 10.04 and CUDA

    Hello,

    Any have done this before. I wanted to install CUDA driver on Linux ubuntu but I have no idea how to do it, I am feeling so much difficulties to implement it. Is there someone who installed CUDA on Ubuntu 10.04? Then please let me know, how to do it ??????

    Thanks, for any suggestions

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Ubuntu 10.04 and CUDA

    if you haven't done it before any of the Linux based computer then it would be little bit difficult to install it because it is much different from your windows based driver installation. You have to take the help of command line argument in Ubuntu and then you can proceed for installation. As well as, yeah, you need to use gcc4.3 for compiling the SDK. The demonstrations are running just better...

  3. #3
    Join Date
    Mar 2010
    Posts
    54

    Re: Ubuntu 10.04 and CUDA

    Quote Originally Posted by Devasis View Post
    As well as, yeah, you need to use gcc4.3 for compiling the SDK. The demonstrations are running just better...
    I know, I have to take the help of command line argument for completing the installation of CUBA driver on ubunut..But one thing, I need to ask you is that - Do you managed to have gcc 4.3 and 4.4 side by side? Any more explanation on this !!

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Ubuntu 10.04 and CUDA

    yeah, you need to just run the following statement as follows -

    sudo apt-get install gcc-4.3 g++-4.3

    If you desired to configure it simply then you can use update-alternatives:

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.3
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4
    Now, if you need to change between gcc versions, easily execute the following command with the specific parameters :

    sudo update-alternatives --config gcc

  5. #5
    Join Date
    Mar 2010
    Posts
    63

    Re: Ubuntu 10.04 and CUDA

    Have you used the CUDA 2.3 driver before ? I just tried the 3.0 driver on Ubuntu 10.04 and unable to build the nvidia.ko kernel module. The error message indicating some description as follows:

    "ERROR: Unable to load the kernel module 'nvidia.ko'. This is going on most quickly when this kernel module was made against the incorrect or the kernel sources that is configured in a improper manner, with a version of gcc that differs from the one used to build the target kernel, or if a driver like rivafb/nvidiafb is present and restrict the NVIDIA kernel module from getting ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this machine is not compatible with this NVIDIA Linux graphics driver release."

    I am compiling with the default GCC, 4.4.3, that I feel is the similar one used to build the Linux kernel. The GCC 4.3 workaround for the SDK should not apply to compiling the driver, should it? Some other descriptions above can be ruled out: the /var/log/nvidia-installer.log displays it checked for rivafb and nvidiafb and didn't get failed at that moment, so I don't think those were available at that time; and the GPU present is a GeForce 8800, that should be compatible with the latest driver release. I will try using the 2.3 driver and will try also if it comes to work.

  6. #6
    Join Date
    Apr 2008
    Posts
    593

    Re: Ubuntu 10.04 and CUDA

    I am working with 195.36.24 driver which is running very perfect. Getting it to work was the complex section 'cause the installation method differs from the old released versions.This is what I performed to install the binary drivers from nvidia's official website.

    1) Just be sure that you have downloaded the proper driver from nvidia's site.
    2) And Just uninstall existing nvidia packagesif you made enabled nvidia in system->administration->hardware drivers, then just made disable them primarily and possibly restart the system)

    sudo apt-get purge nvidia-*

    3) Make the file in following location - "/etc/modprobe.d/nvidia-graphics-drivers.conf" with the following matters

    blacklist vga16fb
    blacklist nouveau
    blacklist lbm-nouveau
    blacklist nvidia-173
    blacklist nvidia-96
    blacklist nvidia-current
    blacklist nvidiafb

    4) Make or adjust the /etx/X11/xorg.conf file with these settings :

    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection

    5) Restart the Machine now..
    6) it will suggest you that it gets failed to start X ( low graphics mode ) ,then select a text based console login (if it it not coming to start in X, just press ctrl-F1, log yourself in and call "sudo service gdm stop"

    7) Launch the nvidia installer and when it pops up to run nvidia-x-config, then command it as yes

    8) start X: sudo service gdm start

  7. #7
    Join Date
    May 2008
    Posts
    816

    Re: Ubuntu 10.04 and CUDA

    OK, I am getting what you are saying and primarily it was looking very inconvenient and when I tried to install it then goes much success!But one thing, I want to share with you also that I hadn't heard of making an "nvidia-graphics-drivers.conf" blacklist file before, but when I tried with your suggestion then it worked for me . I used the CUDA 3.0 drivers. Thanks you so much for such a wonderful suggestion !!!!

  8. #8
    Join Date
    Oct 2010
    Posts
    1

    Re: Ubuntu 10.04 and CUDA

    Thank you for the instruction, it worked for me too:

    Ubuntu 10.04 64-bit AMD, Nvidia 9600GT, and my NVIDIA driver is 256.53 (Oct 2010)

  9. #9
    Join Date
    Jan 2010
    Posts
    4

    Re: Ubuntu 10.04 and CUDA

    10.10 is very good
    Last edited by Vigil.M; 12-10-2010 at 03:56 PM. Reason: No external Links allowed

Similar Threads

  1. Nvidia CUDA and PhysX
    By Taarank in forum Monitor & Video Cards
    Replies: 13
    Last Post: 25-02-2011, 07:20 PM
  2. CUDA with BOINC
    By Mei-Xiu in forum Monitor & Video Cards
    Replies: 6
    Last Post: 01-06-2010, 06:56 AM
  3. Use CUDA on FreeBSD
    By Beverly Archer in forum Operating Systems
    Replies: 4
    Last Post: 02-04-2010, 01:45 PM
  4. CUDA encoders for H.264
    By Bansi_WADIA in forum Operating Systems
    Replies: 3
    Last Post: 12-06-2009, 10:33 PM
  5. Have You Tried CoreAVC with CUDA ?
    By Bina in forum Technology & Internet
    Replies: 5
    Last Post: 10-03-2009, 11:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,258,304.50952 seconds with 17 queries