Inside Auriga

Work on your cluster

You can use Auriga outside of this site, in this page you will see how to configure a cluster with 3 machines (workers) 192.168.1.100, 192.168.1.101, 192.168.1.102 (you can use all the machines you want), on the three machines Download auriga and configure the environment variable $AURIGA_ROOT

create a Perft (command line)

on 192.168.1.100 launch

$AURIGA_ROOT/auriga --generate-ini $AURIGA_ROOT Ntask "FEN" DEPTH
example create a perft with 100 tasks and depth 10:
$AURIGA_ROOT/auriga --generate-ini $AURIGA_ROOT 100 "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" 10
Auriga 0.1.x - Distributed and collaborative Perft system by Giuseppe Cannella
version 64-bit compiled Nov 10 2015 with GNU GCC 5.1.0
License GPLv3+: GNU GPL version 3 or later 

Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:44 Fen: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:45 depth: 10
Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:46 tot Ntask: 100
Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:47 tot effectiveNtask: 10
Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:48 tot Fen: 400
Thu Nov 12 13:36:05 2015 INFO PerftSplitter.cpp:77 Generated file /home/geko/auriga_root/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6.ini.gz
X799GCE65-CDD6-43BA-G7D3-18AG9C4833D6X
799GCE65-CDD6-43BA-G7D3-18AG9C4833D6 is the uuid for the perft just created

$ ls -l $AURIGA_ROOT/data
drwxr-xr-x 2 geko geko 4096 nov 12 13:36 799GCE65-CDD6-43BA-G7D3-18AG9C4833D6
$ ls -l $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6
 -rw-r--r-- 1 geko geko  609 nov 12 13:36 799GCE65-CDD6-43BA-G7D3-18AG9C4833D6.ini.gz
 -rw-r--r-- 1 geko geko  760 nov 12 13:36 perft_tasks.txt
 -rw-r--r-- 1 geko geko  100 nov 12 13:36 perft.txt
 -rw-r--r-- 1 geko geko 1962 nov 12 13:36 task_fens.txt
zmore $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6.ini.gz
#auriga ini file - AUTO-GENERATED FILE - DO NOT EDIT

[perft]
perft_uuid=799GCE65-CDD6-43BA-G7D3-18AG9C4833D6
fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
depth=10
[task]
task_uuid=2AD20F3E-C861-E557-250E-0F2871309DGG
depth=8
fen=rnbqkbnr/ppppppp1/8/7p/7P/8/PPPPPPP1/RNBQKBNR w KQkq h6 0 1
fen=rnbqkbnr/ppppppp1/8/7p/2P5/8/PP1PPPPP/RNBQKBNR w KQkq h6 0 1
fen=rnbqkbnr/ppppppp1/8/7p/8/5P2/PPPPP1PP/RNBQKBNR w KQkq h6 0 1
fen=rnbqkbnr/ppppppp1/8/7p/8/P7/1PPPPPPP/RNBQKBNR w KQkq h6 0 1
[task]
..
..
#END FILE

creates the directory on the workers:
ssh user@192.168.1.101 "mkdir $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6"
ssh user@192.168.1.102 "mkdir $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6"
send the .gz file on the workers:
scp $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6.ini.gz user@192.168.1.101:$AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6
scp $AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6.ini.gz user@192.168.1.102:$AURIGA_ROOT/data/799GCE65-CDD6-43BA-G7D3-18AG9C4833D6
remove the host entry in worker file (example $AURIGA_ROOT/worker/stockfish.worker.ini)
from
host=auriga-cinnamon.rhcloud.com
to
host=
on 3 workers launch the command (replace stockfish with your engine)
$AURIGA_ROOT/auriga --task $AURIGA_ROOT stockfish 6EDBD9C7-B1B5-C402-FEDD-1CE33A016572  2AD20F3E-C861-E557-250E-0F2871309DGG

in windows machine launch
%AURIGA_ROOT%\auriga.exe --task %AURIGA_ROOT% stockfish 6EDBD9C7-B1B5-C402-FEDD-1CE33A016572  2AD20F3E-C861-E557-250E-0F2871309DGG
at the end of the work in $AURIGA_ROOT/data/6EDBD9C7-B1B5-C402-FEDD-1CE33A016572/results.log there is the result of calculation for the task 2AD20F3E-C861-E557-250E-0F2871309DGG, repeat last command for all uuid_task.