*GPU*
This sets up a GPU3 client.
#####NOTE: Linux GPU folding is NVIDIA only at this time.#####
Credit for a lot of this guide goes to
this guide at foldingforum.
First, download some files:
Code:
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/256.35/NVIDIA-Linux-x86_64-256.53.run
wget http://developer.download.nvidia.com/compute/cuda/3_0/toolkit/cudatoolkit_3.0_linux_32_ubuntu9.04.run
And install something:
Code:
sudo apt-get install build-essential linux-headers-`uname -r`
This command will stop the GUI, so write down the next commands:Code:
sudo service gdm stop
Now press "[CTRL] + [ALT] + [F1]"
log in and run this command to install the nvidia driver:
Code:
sudo sh NVIDIA-Linux-x86_64-256.53.run
follow the prompts, and say yes to the opengl libraries, and yes to the nvidia-xconfig
now the command which will bring back the GUI:
Code:
sudo service gdm start
Log in again, and continue setup
install the CUDA toolkit
Code:
sudo sh cudatoolkit_3.0_linux_32_ubuntu9.04.run
press enter at the prompt for the path, and now time to create some links:
%-%
Code:
sudo sh -c "echo '/usr/local/cuda/lib' > /etc/ld.so.conf.d/cuda.conf"
sudo ldconfig
now to create the wine directory structure:
Code:
wine notepad
hit x on the notepad window that appears.
Some wrappers, and more linking:
Code:
cd ~/.wine/drive_c/windows/system32
wget http://www.linuxfah.info/wrapper-3.0/cudart/cudart.dll.so
wget http://www.linuxfah.info/wrapper-3.0/cufft/cufft.dll.so
ln -s cudart.dll.so cudart32_30_14.dll
ln -s cudart.dll.so cudart.dll
ln -s cudart.dll.so nvcuda.dll
ln -s cufft.dll.so cufft32_30_14.dll
ln -s cufft.dll.so cufft.dll
now to check if the linking worked with this command:
Code:
ldd ~/.wine/drive_c/windows/system32/cudart.dll
You want an output similar to this:
Code:
linux-gate.so.1 => (0xf7706000)
libcudart.so.3 => /usr/local/cuda/lib/libcudart.so.3 (0xf7697000)
libwine.so.1 => /usr/lib32/libwine.so.1 (0xf7556000)
libm.so.6 => /lib32/libm.so.6 (0xf752f000)
libc.so.6 => /lib32/libc.so.6 (0xf73cc000)
libdl.so.2 => /lib32/libdl.so.2 (0xf73c8000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf73af000)
librt.so.1 => /lib32/librt.so.1 (0xf73a6000)
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf72b7000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf72a7000)
/lib/ld-linux.so.2 (0xf7707000)
If anything says "not found", then go back to the step marked with "%-%"
Finally, now for the client:
Code:
mkdir -p ~/fah/gpu0
wget http://www.stanford.edu/~friedrim/.Folding@home-Win32-GPU_XP-631.zip -O Folding@home-Win32-GPU_XP-631.zip
now for the program to unzip it:
Code:
sudo apt-get install unzip
and now use it to unzip the client and remove the stanford dll's so that it uses the wrappers:
Code:
unzip Folding@home-Win32-GPU_XP-631.zip -d ~/fah/gpu0
rm ~/fah/gpu0/*.dll
Now time to start the client:
For non-fermi nvidia cards:
Code:
cd ~/fah/gpu0
nice wine Folding@home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_g80
And for Fermi cards:
Code:
cd ~/fah/gpu0
nice wine Folding@home-Win32-GPU.exe -verbosity 9 -forcegpu nvidia_fermi
configure the client, and use "CTRL + c" if you need to stop it at any time.
IMPORTANT NOTE: If the computer is not a dedicated folder, set the CPU usage to 83% in the config to avoid a LOT of mouse lag. if it is dedicated, feel free to leave it at 100%, but keep the window active, so that you can ctrl c it if you need to.
Happy folding.
Ted