Author Message
 Posted 28/04/2009 19:40:04
Overclocked

OverclockedOverclockedOverclockedOverclockedOverclockedOverclockedOverclockedOverclockedOverclocked

Group: Moderators
Last Login: 21/10/2010 10:02:37
Posts: 9,288, Visits: 33,287
courtesy of TOM D

I had loads of problems getting the GPU folding to work on Ubuntu 8.04/8.10 mainly with the NVIDIA drivers and CUDA toolkit but I took the plunge and installed the brand new v9.04 release. Am pleased to say that I was able to get both SMP and GPU folding working with minimal fuss which is great as the SMP folding is much better under linux ~3000PPD on my Q6600. I also haven't noticed a drop in PPD on the GPU although it is early days (online they quote a 10% drop). So far very impressed with v9.04.

Just in case you are interested here are the steps I went through to get the GPU part working. Most of this is from the excellent guide you can find here http://www.overclock.net/overclock-net-folding-home-team/436453-how-gpu2-folding-linux.html with some slight changes for the new Ubuntu release:

1. Downloaded the v9.04 Desktop 64-bit version iso from http://www.ubuntu.com/getubuntu/download
2. Burnt to CD, popped in drive, booted the computer and installed
3. Once installed I made sure everything was up to date (System > Administration > Update Manager)
4. Then installed the NVIDIA drivers (System > Administration > Hardware Drivers). Make sure you pick NVIDIA accelerated graphics driver (version 180) [Recommended]. Click activate.
5. Restarted the computer (not sure if this is needed but did it anyway, too many years as a Windows user txtPost_CommentEmoticon(''); )
6. Opened a terminal (Applications > Accessories > Terminal)
7. Installed the build essential package by typing the following in the terminal:
sudo apt-get install build-essential

8. Opened FireFox and downloaded the CUDA toolkit http://www.nvidia.com/cuda/cuda_get.html. Make sure you pick Linux 32bit, Ubuntu 8.04 and download v2.1. This should put cudatoolkit_2.1_linux32_ubuntu8.04.run on the desktop.
9. Installed the CUDA toolkit by typing the following in the terminal:
sudo sh ~/Desktop/cuda*.run

10. After it installed typed the following in the terminal to set up the CUDA bin & lib paths etc...:

sudo sh -c "echo PATH=/usr/local/cuda/bin:$PATH > /etc/profile.d/cuda.sh"
sudo sh -c "echo /usr/local/cuda/lib > /etc/ld.so.conf.d/cuda.conf"
sudo ldconfig

11. Installed WINE by typing the following in the terminal:
sudo apt-get install wine

12. Launched WINE config (Applications > Wine > Configure Wine). Checked Windows version ass XP (it was),
clicked on audio (mentions something about setting a default), pressed apply/ok to complete this part
13. Now installed the CUDA wrapper/DLL by typing the following into a terminal (this is the key part which makes it work on LINUX):
sudo wget http://www.gpu2.twomurs.com/wrapper2ndgen/2.1/cudart.dll.so -O /usr/lib32/wine/nvcuda.dll.so

14. Once that finished typed the following into the terminal to complete the wrapper install:
ln -s /usr/lib32/wine/nvcuda.dll.so ~/.wine/drive_c/windows/system32/nvcuda.dll

15. Downloaded the GPU client console version from here http://folding.stanford.edu/English/DownloadWinOther (make sure you pick Windows XP/2003 GPU Console client). Opened the download with Archive Manager and extracted the files to a new directory. I picked fahgpu under my home directory
16. In the terminal changed (cd) to the newly created directory and typed ls to list the contents. Should see 4 files, 3 dlls and Folding@home-Win32-GPU.exe
17. In the terminal typed the following to run the fah config (make sure you put -forcegpu nvidia_g80 or it will complain about your GPU not being supported):
wine Folding@home-Win32-GPU.exe -forcegpu nvidia_g80 -configonly

18. During the config put my username and 46590 for the Team Number. Also typed yes for advanced options, low for core priority, 512 for Memory, yes for Set -advmethods and I put -forcegpu nvidia_g80 under Additional client parameters (saves you typing it everytime)
18. Now the moment of truth..... typed the following into the terminal and to my suprise/delight everything was ok and it downloaded a new core and started to fold.
wine Folding@home-Win32-GPU.exe


For reference this was done on Rig-1 (see sig).

TomD



SPIKE09
REMEMBER IT'S JUST A RIDE (BILL HICKS THE GREATEST)
rig 1 Spike Athlon 64 X2 3800,1 gig pc3200 (dc) ,radeon X1900XT rig 2Angus Ogg Athlon  2200,ASUS A7V8X-X,1GB2 PC2700,RADEON 9600XT
rig3 The Dagda Acer aspire 1353 xv, AthlonXP-M 2400, 512 Mb PC2700 .Rig 4 Q6600,ASROCK DUALQUAD thingy,2GB corsair pc6400 X1600pro rig 5 TVTWINs- IntelE6400,2Gb DDR667,Nvidia6600 silent.rig6.AMD 64 3700 1Gb pc3200 rig7.Smokey Q6600,2GB pc5400,X1950 pro, asrock quad-dualthingummy|rig 8 Q6600, 4GB patriot PC6400, ASUS P5B 8800gt,  E6420,4GB ram currently homeless TOP 1,000 in the world in F@H Hehe
F@H BETA TESTER- team MM FOLD it does every body good join team 46590 2ND Mug. Hmm you know who you are.Wink
 

Post #347966
Add to Twitter Add to Facebook


Reading This Topic

Expand / Collapse