1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to install openCL (for F@H) Ubuntu

Discussion in 'Linux / BSD / Mac OS X' started by thebluebumblebee, Jun 13, 2014.

  1. thebluebumblebee

    thebluebumblebee

    Joined:
    Jul 2, 2008
    Messages:
    3,321 (1.40/day)
    Thanks Received:
    1,876
    Crunching for Team TPU
  2. RCoon

    RCoon Gaming Moderator Staff Member

    Joined:
    Apr 19, 2012
    Messages:
    8,002 (8.14/day)
    Thanks Received:
    4,119
    Location:
    Gypsyland, UK
    When you're new to linux, everything is convoluted and completely obnoxious. There will never be a year of linux on the desktop. It simply isn't newbie friendly in the slightest

    As someone who's used linux rather a lot (I'm no expert like EasyRhino, but I know my way round), you get used to it. Once you've got one kind of app running, the rest is pretty easy. You'll learn your way around.
     
    Guitarrassdeamor says thanks.
  3. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,543 (4.56/day)
    Thanks Received:
    3,382
    The documentation is very clear.

    Assuming you have a CUDA capable card and your 64bit Ubuntu version is supported all you need to do is...

    Code:
    cd /opt
    
    sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1304/x86_64/cuda-repo-ubuntu1304_6.0-37_amd64.deb
    
    sudo dpkg -i cuda-repo-ubuntu1304_6.0-37_amd64.deb
    
    sudo apt-get update
    
    sudo apt-get install cuda
    
    Then as the user you are going to be running F@H as:
    
    export PATH=/usr/local/cuda-6.0/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib64:$LD_LIBRARY_PATH  (again assuming 64 bit OS)
     
    Last edited: Jun 13, 2014
    thebluebumblebee says thanks.
    Crunching for Team TPU
  4. thebluebumblebee

    thebluebumblebee

    Joined:
    Jul 2, 2008
    Messages:
    3,321 (1.40/day)
    Thanks Received:
    1,876
    I'm assuming that Linux is backwards compatible??? The CUDA guide says Ubuntu 13.04, and I'm using 14.04.
     
    Crunching for Team TPU
  5. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,543 (4.56/day)
    Thanks Received:
    3,382
    From googling it does not look like cuda 6 is working yet with ubuntu 14
     
    thebluebumblebee says thanks.
    Crunching for Team TPU
  6. thebluebumblebee

    thebluebumblebee

    Joined:
    Jul 2, 2008
    Messages:
    3,321 (1.40/day)
    Thanks Received:
    1,876
    So, am I going to have to find the "lowest common denominator" for Linux/Cuda/openCL?

    Edit: Do I need to start all over to downgrade Ubuntu?
     
    Last edited: Jun 13, 2014
    Crunching for Team TPU
  7. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,543 (4.56/day)
    Thanks Received:
    3,382
    yes you will need to install 13.04 from scratch or wait for a 14.04 version.
     
    Crunching for Team TPU
  8. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    Crunching for Team TPU More than 25k PPD
  9. thebluebumblebee

    thebluebumblebee

    Joined:
    Jul 2, 2008
    Messages:
    3,321 (1.40/day)
    Thanks Received:
    1,876
    Read that whole thread. I don't see people having to do the CUDA/openCL install, BUT, they seem to be mostly using Mint. Could it be that Mint comes ready to go? I'm also trying to figure out the knowledge level of the posters there. The one person doesn't even realize that the reason he went from 35-40K PPD to 95K PPD is (most likely) cause by going from core_15 to core_17 WU's.
    Okay, one guy mentions CUDA....

    FYI, the work that we do here will be turned into a guide for F@H on Nvidia GPU's on Linux. The goal is to help Folders AND Crunchers better use Linux.
     
    T-Bob says thanks.
    Crunching for Team TPU
  10. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,543 (4.56/day)
    Thanks Received:
    3,382
    i don't have a linux box with an nvidia gpu. if i did i would try and get it working tonight. obviously it is easier when you can sit down and pound out some commands and look at what libraries are being called. i did get wcg working wonders on this centos box with little effort. it was cranking away.
     
    Crunching for Team TPU
  11. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    I do have a Mint 15 box running just WCG (my 3770K machine, and actually my Q9550 machine as well) so perhaps I'll put it on the bench with a Corsair TX750 and the GTX 465 or something and see if I can get it working.

    EDIT: Put a GTX 470 in a Mint 15 box (my 3770K rig), activated the recommended NVIDIA driver from the device drivers menu, downloaded and installed the pre-requisite package to add the CUDA repository:
    http://developer.download.nvidia.co.../x86_64/cuda-repo-ubuntu1304_6.0-37_amd64.deb

    and then issued the commands:
    Code:
    sudo apt-get update
    
    sudo apt-get install cuda
    



    Now I'm waiting several hours for the CUDA toolkit to download via the terminal, all the packages amount to >1GB from what I saw, almost 900MB disk space required for the actual install. I guess the next things I need to do are get WINE set up and Windows F@H set up, and I think there's some config needed to download the Windows GPU WUs, I am not sure. I tried this once before, but had no idea about the CUDA toolkit, so it failed miserably. I am currently using this guide for getting CUDA installed: http://docs.nvidia.com/cuda/cuda-ge...or-linux/index.html#post-installation-actions

    EDIT2: CUDA Toolkit finished installing, so I went to go get the Linux F@H client from this guide under the Express Installation section: https://folding.stanford.edu/home/guide/linux-install-guide/

    Download the fahclient and fahcontrol .deb files, install in that order. You'll be prompted for your credentials in the fahclient installation, and just install and launch fahcontrol afterwards to delete the CPU slot, add a GPU slot and I added the client-type "beta" flag for good measure. After that, you'll see your NVIDIA GPU hop into action with pitiful PPD at first, but then:

    (Also, I think installing CUDA automatically updated the display driver as well, I had 310 activated but it says 331 now. GTX 470 is at stock 608MHz core and running a GELID Icy Vision 2 with a 120mm 2000 RPM fan attached, hence the low temperature.CPU is an i7-3770K at 4.2GHz, and World Community Grid is running on 6 of the 8 threads, F@H needs one full thread it seems.)

    [​IMG]
     
    Last edited: Jun 14, 2014
    thebluebumblebee and blobster21 say thanks.
    Crunching for Team TPU More than 25k PPD
  12. BUCK NASTY

    BUCK NASTY F@H Mod & 4P Enthusiust Staff Member

    Joined:
    Aug 8, 2007
    Messages:
    4,657 (1.73/day)
    Thanks Received:
    4,042
    Location:
    Tallahassee, FL. U.S.A.
    Jstn, what's the max ppd you have seen on the GTX470?
     
    Crunching for Team TPU More than 25k PPD
  13. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    Latest screenshot, definitely the highest I've seen out of this board I feel, even during the days I overclocked it to 700-725MHz:

    [​IMG]
     
    mx500torid says thanks.
    Crunching for Team TPU More than 25k PPD
  14. mx500torid

    mx500torid

    Joined:
    Oct 21, 2007
    Messages:
    967 (0.37/day)
    Thanks Received:
    1,558
    OK I got an extra C2D combo lying around and a 470. Im gonna get a large bottle of aspirin and give this a try. Gonna use Ubuntu 14.04 though.
     
    Crunching for Team TPU More than 25k PPD
  15. thebluebumblebee

    thebluebumblebee

    Joined:
    Jul 2, 2008
    Messages:
    3,321 (1.40/day)
    Thanks Received:
    1,876
    Look at posts 4-7 in this thread.
     
    Last edited: Jun 15, 2014
    Crunching for Team TPU
  16. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    I'm going to try flashing my GTX 465 and GTX 470 to 700MHz tonight, and the GTX 470 has been hovering around 24-26K PPD the last two days. We'll see what happens.
     
    Crunching for Team TPU More than 25k PPD
  17. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    Cards flashed to 700MHz, noticed the GTX 470 went from 24-34K to around 25.5-36.5K estimated PPD. Best screenie yet:

    [​IMG]
     
    stinger608 and thebluebumblebee say thanks.
    Crunching for Team TPU More than 25k PPD
  18. Jstn7477

    Jstn7477

    Joined:
    Aug 30, 2009
    Messages:
    3,946 (2.03/day)
    Thanks Received:
    1,614
    Location:
    Sarasota, Florida, USA
    Mint 17 and Ubuntu 14.04 are compatible with CUDA Toolkit now! (And probably have been for a few weeks.)

    Download and install: http://developer.download.nvidia.co.../x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb

    Then, in terminal:

    Code:
    sudo apt-get update
    
    sudo apt-get install cuda
    
    I have not tested distribution upgrades because honestly I screwed up my Mint 15 install by adding Mint 16 sources and upgrading, which left me without a working desktop.
     
    mx500torid, T-Bob and thebluebumblebee say thanks.
    Crunching for Team TPU More than 25k PPD

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page