Cluster Toga based on Fruit Source Code

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

KaiHimstedt

Cluster Toga based on Fruit Source Code

Post by KaiHimstedt »

From time to time people ask me about the availability of the Cluster Toga based on Fruit source code. I decided to publish the source code now. Cluster Toga is a Young Brothers Wait Concept (YBWC) parallelized version of Toga based on Fruit capable to run on a high performance cluster and participated for example in the 17th International Paderborn Computer Chess Championship (IPCCC) 2007 and the 16th World Computer-Chess Championship (WCCC) 2008 in Beijing. In fact Cluster Toga is a stand alone base engine of the GridChess system which participated for example in the 15th World Computer-Chess Championship (WCCC) 2007 in Amsterdam but is limited to use a single cluster. Up to now Cluster Toga has been tested under several Linux derivatives, Windows Server 2003 Compute Cluster Edition and Windows Clusters built from COTS (commodity off-the-shelf) components. If you are interested, a short description about my project and how to receive the source code can be found at

http://www.informatik.uni-hamburg.de/TI ... rojects/79

Have fun!

Kai Himstedt
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Cluster Toga based on Fruit Source Code

Post by Dann Corbit »

I was able to build a 64 bit version easily enough (libraries mpich2.lib and ws2_32.lib added).

How do I actually run it so that it is recognized as a chess engine?
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Cluster Toga based on Fruit Source Code

Post by Dann Corbit »

Dann Corbit wrote:I was able to build a 64 bit version easily enough (libraries mpich2.lib and ws2_32.lib added).

How do I actually run it so that it is recognized as a chess engine?
OK, it installed easily enough.
How do I specify nodes for the cluster? Can I start multiple instances on a single multiple CPU machine?
KaiHimstedt

Re: Cluster Toga based on Fruit Source Code

Post by KaiHimstedt »

Depends on your MPI environment.
Use mpiexec .exe as UCI engine.

Something like:
mpiexec -n 8 -machinefile <filename> -wdir <working_directory> ClusterToga.exe

or

mpiexec -n 8 -host <host_name> -wdir <working_directory> ClusterToga.exe
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Cluster Toga based on Fruit Source Code

Post by Dann Corbit »

KaiHimstedt wrote:Depends on your MPI environment.
Use mpiexec .exe as UCI engine.

Something like:
mpiexec -n 8 -machinefile <filename> -wdir <working_directory> ClusterToga.exe

or

mpiexec -n 8 -host <host_name> -wdir <working_directory> ClusterToga.exe
I made a batch file that contained:

Code: Select all

"c&#58;\Program Files\MPICH2\bin\mpiexec.exe" -np 4 c&#58;\chess\winboard\cluster-toga\cluster-toga.exe
and that works from the command line:

some output:
info depth 18 seldepth 42 time 49874 nodes 141518598 nps 2837523
info depth 19
info currmove g1f3 currmovenumber 1

However, it requests logon information that the GUI does not know how to supply. Is there a simple way to store the credentials so that it does not ask for them?

Sorry to be such a pest.
KaiHimstedt

Re: Cluster Toga based on Fruit Source Code

Post by KaiHimstedt »

Dann Corbit wrote:
KaiHimstedt wrote:Depends on your MPI environment.
Use mpiexec .exe as UCI engine.

Something like:
mpiexec -n 8 -machinefile <filename> -wdir <working_directory> ClusterToga.exe

or

mpiexec -n 8 -host <host_name> -wdir <working_directory> ClusterToga.exe
I made a batch file that contained:

Code: Select all

"c&#58;\Program Files\MPICH2\bin\mpiexec.exe" -np 4 c&#58;\chess\winboard\cluster-toga\cluster-toga.exe
and that works from the command line:

some output:
info depth 18 seldepth 42 time 49874 nodes 141518598 nps 2837523
info depth 19
info currmove g1f3 currmovenumber 1

However, it requests logon information that the GUI does not know how to supply. Is there a simple way to store the credentials so that it does not ask for them?

Sorry to be such a pest.
try something like
mpiexec -register
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Cluster Toga based on Fruit Source Code

Post by Dann Corbit »

KaiHimstedt wrote:
Dann Corbit wrote:
KaiHimstedt wrote:Depends on your MPI environment.
Use mpiexec .exe as UCI engine.

Something like:
mpiexec -n 8 -machinefile <filename> -wdir <working_directory> ClusterToga.exe

or

mpiexec -n 8 -host <host_name> -wdir <working_directory> ClusterToga.exe
I made a batch file that contained:

Code: Select all

"c&#58;\Program Files\MPICH2\bin\mpiexec.exe" -np 4 c&#58;\chess\winboard\cluster-toga\cluster-toga.exe
and that works from the command line:

some output:
info depth 18 seldepth 42 time 49874 nodes 141518598 nps 2837523
info depth 19
info currmove g1f3 currmovenumber 1

However, it requests logon information that the GUI does not know how to supply. Is there a simple way to store the credentials so that it does not ask for them?

Sorry to be such a pest.
try something like
mpiexec -register
Thanks. I'll try a Scorpio Cluster verses Toga Cluster tournament for fun.
User avatar
Jim Ablett
Posts: 1383
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Cluster Toga based on Fruit Source Code

Post by Jim Ablett »

Windows 64 bit Intel pgo build >
http://dl.dropbox.com/u/5047625/toga-cluster-64.zip

You will need also to install Mpich2 'mpich2-1.2.1p1-win-x86-64.msi'
for functionality >
http://www.mcs.anl.gov/research/project ... =downloads

Jim.
karger
Posts: 218
Joined: Tue Feb 02, 2010 2:27 am
Full name: John Karger

Re: Cluster Toga based on Fruit Source Code

Post by karger »

Any chance of a 32 bit compile ?
User avatar
Jim Ablett
Posts: 1383
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Cluster Toga based on Fruit Source Code

Post by Jim Ablett »

karger wrote:Any chance of a 32 bit compile ?
http://dl.dropbox.com/u/5047625/toga-cluster-32-ja.zip

Jim.