Page 1 of 1

The Official SMP Installation Thread

Posted: Sat Jun 23, 2007 3:06 pm
by dicecca112
The SMP client is the only client that takes advantage of dual/quad core cpus to there fullest potential. No longer is there a need to have more than one instance of F@H to take advantage of all the cores your CPU possesses. But there are some warnings and general thoughts here.

1. SMP WU unit deadlines are extremely tight. They range from 1 day at the minimum, to 4 at the maximum. An average C2D can perform a frame in 22minutes on the hardest WUs. I suggest that in order to fold these work units you fold at least 10hrs a day at a minimum, or you will miss the deadline.

2. Remember these are beta clients, they are extremely stable, but you can encounter problems with the client. All are documented, and the most common ones, have easy fixes. Don't hesitates to post here.

3. The reward on these WUs is huge. The largest WUs are 1760pointers and range to 700-800points. You can produce very large PPDs in a very short time, adding a tremendous boost to the team.

4. Almost any 64bit OS will work for Linux. This guide uses Ubuntu and not all steps will apply to every OS.

5. This guide has been tested and works with Windows XP and Ubuntu 8.04

Windows Installation with Windows Client

Download the client from here http://www.stanford.edu/%7Ekasson/foldi ... Client.EXE and install it

Follow the directiond below for your OS
Quick install for Windows XP and 2000

Install the Microsoft .NET framework v2.0 before installing the SMP client. Next, run the self-extracting installer to choose an installation directory and install the files there. Then run install.bat in the installation directory to complete the install process. Running the fah.exe binary starts the client. More detailed instructions are at the bottom of this page. The quick version is:

1. Make sure .netframework 2.0 is installed
2. Make sure you have an account with a password set up (FAH SMP on Windows won't work if your account doesn't have a password associated with it).
3. Install FAH SMP client
4. Run install.bat file
5. Run fah.exe
Quick install for Windows Vista

The .NET framework v2.0 is not needed (it is already installed). Run the self-extracting installer to choose an installation directory and install the files there. Then run install.bat in the installation directory to complete the install process. Running the fah.exe binary starts the client. More detailed instructions are at the bottom of this page. The quick version is:

1. Make sure .netframework 2.0 is installed
2. Make sure you have an account with a password set up (FAH SMP on Windows won't work if your account doesn't have a password associated with it).
3. Install FAH SMP client
4. Run install.bat file
5. Run fah.exe
Now we install the update for the 5.91 Client. Download the client here http://www.stanford.edu/group/pandegrou ... update.zip

Follow the directions below.
The installation process is a little complicated. PLEASE READ BELOW.
1. The initial release is a *replacement* for your current 5.91 SMP client. We will have a fresh install version soon.
2. Make a backup of a working FAH Windows/SMP installation. Install into your current SMP working directory
3. Unzip the 5.92 file in your test directory
4. Open a command prompt window (run as administrator if Vista)
5. run install.bat. This will do several things
.. a) install DeinoMPI. You don't need to do anything special here
.. b) In the terminal window, you will be prompted to create a "credential store" that DeinoMPI will use to authenticate the mpi processes. Important: do not use a passphrase here (just hit return for no passphrase and say yes, you're sure). I recommend encrypting the data 'protected' and using the registry for storage.
.. c) add your user information to the encrypted credential store. This will prompt you for your username and password.
.. d) run the standard mpiexec -np 2 foo test application to make sure things work. On some WinXP systems, you may see a defective Windows Firewall dialogue box come up. The firewall may also ask you to unblock applications (this is a good idea).
Notes from the forum mods on the above process:
5.d) The Windows Firewall dialog box will pop up twice. The first time, you will be able to see and click Unblock for DeinoMPI. The second time, the pop up window is hosed. However, since the unblock button has a hot key, you can press alt+u to unblock the next item and make it go away. I checked my firewall exceptions list after unblocking both. The second pop up is for fahcore1.exe.
5.d.2) I found a different bypass. After having gotten the hosed windows many times in WinXP I went to Start + ControlPanel + SecurityCenter + WindowsFirewall. On the Exceptions tab I scrolled through the list of names, adding a checkmark to the appropriate boxes.
6. Start fah.exe as normal.
NOTE! - EMIII cannot read SMP units, so tracking does not work. Only FahMon works.


Windows Installation with VMware

Basically follow the linux installation after you install VMWare Workstation. Its free from VMWare

1. Get Vmware here http://www.vmware.com/download/server/ Register to get your free Key

2. Download your distro of choice, I use Ubuntu

3. Install VMware

4. Create a VM

File - New Virtual Machine

Hit Next

Select Custom and Hit Next

Select Linux, and choice Ubuntu 64-bit

Hit next till you reach the screen that asks you home my processors to use, check 2 and hit net.

Allocate 512MB of ram at a minimum. I suggest half of your total ram.

Select that NAT option

Create a Virtual Disk

SCSI

Select a Disk size of 5-8GB. 5 is usually plenty

Creat the Disk

A new screen will pop up when the disk is done allocating

Then do the following
VMware server software is clever enough to mount an ISO as a virtual CD-ROM for your Virtual Machine to boot from, directly from your drive - meaning faster load times. To do this, edit your VM's CD-ROM options [click Edit Settings, highlight CD-ROM] and select 'Use ISO Image' instead of 'Host device'. Browse to the downloaded ubuntu 6.10 64bit desktop image you found earlier, and click ok.
Install Linux with the guide below

For those running 32bit Linux and emulating 64bit like me, watch out, Linux VMWare Software has a nasty little bug where it doesn't run full speed in your VM. My Core 2 Duo was running at 774Mhz and not the full 2GHZ. Apply the following fix
On a Linux host server:

To prevent guest clocks from running too quickly, specify the correct maximum host CPU speed in your global configuration file, /etc/vmware/config. If this file exists, edit it with a text editor, adding the lines described below. The file may not exist. If it does not exist, create it as a plain text file.

Add the following lines to your global configuration file:

host.cpukHz = "X" where "X" equals the maximum speed in KHz of your host machine. That is, its speed in MHz times 1000 or its speed in GHz times 1000000. A 3GHz machine would be 3000000.
host.noTSC = TRUE
ptsc.noTSC = TRUE

To periodically correct the time (once per minute) when a guest clock runs slowly, VMware Tools must be installed in the guest. On the Options tab of VMware Tools in the guest, verify that Time synchronization between the virtual machine and the host operating system is selected.

Native Linux Installation

For the Linux Installation, there is only one requirement for your choice of Linux. It must be a 64bit Version. My choice is Ubuntu, only because I have the most familiarity with it.

After you have installed and configured your distro to your liking, perform the following steps

1. Install the 32bit Librarys

Code: Select all

sudo apt-get install ia32-libs
kenc51 wrote:Most 64bit Linux distros come with the 32bit libraries installed by default. If you are using something other than a distro based on Debian (Ubuntu etc) and the command "sudo apt-get install ia32-libs" doesn't work, don't worry. This is probably because your distro hasn't got the "APT" package manager, also if you search to install ia32-libs and can't find it, don't worry.
2. Download and Configure the F@H SMP Client

Code: Select all

mkdir -p ~/FAH
cd ~/FAH
wget http://www.stanford.edu/group/pandegroup/folding/release/FAH6.02beta1-Linux.tgz
tar xzf FAH6.00beta2-Linux.tgz
./fah6 -configonly
Fill in your normal username, and our Team Number (38296). The rest of the options can be left at there default settings

3. Set Ubuntu so FAH automatically starts with Linux

Now I can't take credit for this step, I had to do a bit of research and stumbled across a guide at Rage3D

Fire open the terminal and type the followin

Code: Select all

sudo nano /etc/rc.local
Then add the following line just before the line that says exit 0. Be sure to edit the user, to whatever username you use to log into windows

Code: Select all

sudo sh -c "cd /home/user/FAH; ./fah6 -local -forceasm -verbosity 9 -smp"
4. Install your choice of Linux Monitoring program, FahMon is one that works well.

To install FahMon there are two ways, via a .deb file for Ubuntu or compile it yourself. FahMon has downloads for many distributions.

Look here for the Source and installation packages

http://fahmon.net/download.html

To Compile first download the dependencies

You need
G++
G++ 4.1
scons
libwxgtk2.6-0
libwxgtk2.6-dev

and all there associated dependencies

dowload the Tar

extract it and cd to the folder

type ./configure

then make

the sudo make install

If it compiles without errors, then type ./fahmon to run the program

***Thanks to Rage3D for there guide, they helped me figure out parts that I could have never on my own***