Running the Folding@Home GPU client on Ubuntu 10.10

This is just a short howto, describing how to use the power of your computers NVIDIA GPU to help Folding@Home - as far as I know, this will NOT work with an ATI GPU!

First of, you need to install a couple of programs, including the newest Nvidia drivers:

sudo apt-get install wine nvidia-current

Now, restart your computer to make use of your shiny new drivers.
Next, you must install Nvidia's official CUDA toolkit:

cd ~
mkdir fahgpu
cd fahgpu/
wget http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/cudatoolkit_2.3_linux_32_ubuntu9.04.run
chmod u+x cudatoolkit_2.3_linux_32_ubuntu9.04.run
sudo ./cudatoolkit_2.3_linux_32_ubuntu9.04.run # Just press enter whenever you are prompted for something
rm cudatoolkit_2.3_linux_32_ubuntu9.04.run
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

Get some wrappers for the windows CUDA DLL files and download the Folding@Home GPU client:

wget http://www.gpu3.hostei.com/wrapper2ndgen/2.1/cudart.dll.so -O ~/.wine/drive_c/windows/system32/cudart.dll
cd ~/.wine/drive_c/windows/system32/
ln -s cudart.dll nvcuda.dll
ldd ~/.wine/drive_c/windows/system32/cudart.dll
cd ~/fahgpu/
wget http://www.stanford.edu/group/pandegroup/folding/release/Folding@home-Win32-GPU_XP-623.zip
unzip Folding@home-Win32-GPU_XP-623.zip
cat << EOF > run.sh
#!/bin/sh
wine Folding@home-Win32-GPU.exe -forcegpu nvidia_g80
EOF
chmod u+x run.sh

Now you only have to start the Folding@Home GPU client:

./run.sh

Of course, you can make a desktop shortcut or whatnot, but that's out of the scope of this howto. I hope you enjoy Folding!


Written by Jannich Brendle man 07 februar 2011 In How to

tags: folding@homehowtoubuntu

Related posts

social