GPU Folding with Ubuntu 10.04 64 bit

Help setting up the folding client including help with Linux

Moderators: casw1000, Flathead74, Lord British

User avatar
Lord British
Site Admin
Posts: 3528
Joined: Sat Oct 28, 2006 5:10 pm
Location: Edgerton, Wisconsin
Contact:

GPU Folding with Ubuntu 10.04 64 bit

Postby Lord British » Tue Jun 08, 2010 4:52 pm

These instructions will help you get started gpu folding on 64 bit Ubuntu 10.04 Lucid Lynx.

This will install Ubuntu 10.04, GPU folding client and compile nvclock. All italicized comments are terminal commands. There is a space after every http address and @ symbol in the folding client so that it doesn't compress the address. You will have to remove it for the command to work.

You may want to have this list available on a different computer for some of the addresses.

1 - Download and install Ubuntu 10.04 - http ://www.ubuntu.com/

2 - sudo apt-get update
3 - sudo apt-get dist-upgrade (may take a while)
4 - sudo apt-get install wine build-essential openssh-server

5 - winecfg (click ok once started - no need to configure anything)

6 - wget http ://www.fold4life.com/ffiles/wrapper2ndgen/cudart.dll.so -O ~/.wine/drive_c/windows/system32/cudart.dll
7 - ln -s ~/.wine/drive_c/windows/system32/cudart.dll ~/.wine/drive_c/windows/system32/nvcuda.dll

8 - Go to System -> Administration -> Hardware Drivers and install the latest nVidia drivers included with Ubuntu 10.04.

9 - wget http ://www.nvidia.com/object/thankyou_linux.html?url=/compute/cuda/2_3/toolkit/cudatoolkit_2.3_linux_32_ubuntu9.04.run
10 - chmod +x cudatoolkit_2.3_linux_32_ubuntu9.04.run

11 - sudo ./cudatoolkit_2.3_linux_32_ubuntu9.04.run
12 - sudo sh -c "echo '/usr/local/cuda/lib' > /etc/ld.so.conf.d/cuda.conf"
13 - sudo ldconfig
14 - sudo reboot

15 - cd ~
16 - wget http ://www.linuxhardware.org/nvclock/nvclock0.8b4.tar.gz
17 - tar xvzf nvclock0.8b4.tar.gz
18 - cd nvclock0.8b4
19 - ./configure --disable-gtk --disable-qt --disable-x --disable-nvcontrol
20 - make
21 - sudo make install
22 - nvclock -i (will give error message about a directory the first time)

23 - cd ~
24 - mkdir folding
25 - cd folding
26 - wget http ://www.stanford.edu/group/pandegroup/folding/release/Folding @home-Win32-GPU_XP-623.zip
27 - unzip Folding @home-Win32-GPU_XP-623.zip

28 - wine Folding @home-Win32-GPU.exe -configonly -forcegpu nvidia_g80
29 - wine Folding @home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_g80

Starting apps from terminal:

nvclock -i (for card info, speeds, and temps)
nvclock -f -F 100 (run gpu fan at 100%)

For multi card setups:

nvclock -s (shows card numbers)
nvclock -c 1 -f -F 100 (changes card #1 fan to 100%)
:ubergeek:

User avatar
casw1000
Sith Lord Darth Folder
Posts: 5994
Joined: Sat Oct 28, 2006 8:13 pm
Location: Rye, United Kingdom
Contact:

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby casw1000 » Tue Jun 08, 2010 9:07 pm

LB - Awesome write up, thank you. I would like to add a small bit of [hopefully] useful information. Whilst I was over at the foldingforum.org I noticed that when folding GPU3 it might be necessary to use the -force gpu nvidia_fermi flag. IF you are running a newer GTX400 series card.

Please also note that there are mixed results when trying to fold with both a 400 series and 200 or earlier in the same system. When trying to do this, it would be a safer approach to have seperate installations of the FAH GP client in their own directories, then you could try and use the necessary flags such as -force gpu nvidia_g80 for the older hardware and above for the fermi.

If in doubt, ask more questions on our great forums, or check out the foldingforum.org.

Way to go LB, awesome job. :thumbsup:
Image

User avatar
Lord British
Site Admin
Posts: 3528
Joined: Sat Oct 28, 2006 5:10 pm
Location: Edgerton, Wisconsin
Contact:

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Lord British » Tue Jun 08, 2010 9:22 pm

I just upgraded my workstation to 10.04. So, I figured I would do the gpu writeup since I had to go through it myself :) I will probably writeup how to do the smp part since there is a small hack necessary.

I would've used the nVidia 197 dev drivers but the installer doesn't work (yet) on 10.04. 10.04 does include the 195 drivers which isn't bad. Using the included drivers simplifies things a lot and makes upgrades even easier (and pain free).
:ubergeek:

User avatar
Sir_Loin
Spud Trooper
Posts: 3071
Joined: Wed Nov 01, 2006 3:37 am
Location: Houston, TX

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Sir_Loin » Tue Jun 08, 2010 10:50 pm

Very nice and simple compared to older releases...fewer steps. 8)
8) Support Heatware by making purchases through their sponsored links 8)
Say no to theft, say no to purchasing ES units
Folding 4 Life :D | Heatware - Sir_Loin

User avatar
DPA
Posts: 753
Joined: Thu May 22, 2008 5:56 am
Location: Colorado Springs, CO

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby DPA » Wed Jun 09, 2010 3:35 am

Very nice guide LB. I used myself today. Were you able to get fahmon or hfmnet to compile on 10.04?

Dave

User avatar
DPA
Posts: 753
Joined: Thu May 22, 2008 5:56 am
Location: Colorado Springs, CO

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby DPA » Wed Jun 09, 2010 3:39 am

Got fahmon to compile. I'll be trying hfmnet next

User avatar
Lord British
Site Admin
Posts: 3528
Joined: Sat Oct 28, 2006 5:10 pm
Location: Edgerton, Wisconsin
Contact:

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Lord British » Wed Jun 09, 2010 11:45 am

Yep, I got fahmon to compile but I stopped using it since it doesn't calculate bonuses.

I have been using FahSpy under Wine. It runs fine without installing anything other than the standard 10.04 install. Although, it doesn't seem to be calculated bonuses :? Might have to try HFM.
:ubergeek:

User avatar
Lord British
Site Admin
Posts: 3528
Joined: Sat Oct 28, 2006 5:10 pm
Location: Edgerton, Wisconsin
Contact:

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Lord British » Wed Jun 09, 2010 11:59 am

HFM works under 10.04. It has a few glitches but works. Just need to add winforms - sudo apt-get install libmono-winforms2.0-cil and mono HFM.exe :)
:ubergeek:

Van_Arnam
Posts: 1887
Joined: Wed Aug 06, 2008 6:40 am
Location: philly

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Van_Arnam » Wed Jun 09, 2010 2:34 pm

so easy it looks like i could do it!

(now i'll have to figure out how to get bigadv and this on the same box...)

User avatar
Lord British
Site Admin
Posts: 3528
Joined: Sat Oct 28, 2006 5:10 pm
Location: Edgerton, Wisconsin
Contact:

Re: GPU Folding with Ubuntu 10.04 64 bit

Postby Lord British » Wed Jun 09, 2010 4:31 pm

I'll combine them :)
:ubergeek:


Return to “Setup”

Who is online

Users browsing this forum: No registered users and 1 guest