-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn://svn.code.sf.net/p/fuego/code/trunk@2034 2e953b5c-c64d-0410-be54-f773e93e544c
- Loading branch information
mmueller65
committed
Apr 16, 2018
1 parent
f6e4920
commit 215e193
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# Script for playing Fuego on 9x9 CGOS with 16 cores / 32 GB | ||
|
||
FUEGO="../../build/opt/fuegomain/fuego" | ||
VERSION=$(cd ../..; svnversion) || exit 1 | ||
DEFAULT_NAME=Fuego-$VERSION-16c | ||
|
||
echo "Enter CGOS name (default=$DEFAULT_NAME):" | ||
read NAME | ||
if [[ "$NAME" == "" ]]; then | ||
NAME="$DEFAULT_NAME" | ||
fi | ||
echo "Enter CGOS password for $NAME:" | ||
read PASSWORD | ||
|
||
GAMES_DIR="games/$NAME" | ||
mkdir -p "$GAMES_DIR" | ||
|
||
cat <<EOF >config-9-16c.gtp | ||
# This file is auto-generated by play-9-16c.sh. Do not edit. | ||
# Best performance settings for CGOS | ||
# Uses the time limits, therefore the performance depends on the hardware. | ||
go_param debug_to_comment 1 | ||
go_param auto_save $GAMES_DIR/$NAME- | ||
uct_param_player reuse_subtree 1 | ||
uct_param_player ponder 1 | ||
uct_param_player early_pass 0 | ||
# Set CGOS rules (Tromp-Taylor, positional superko) | ||
go_rules cgos | ||
sg_param time_mode real | ||
uct_max_memory 32000000000 | ||
uct_param_search number_threads 16 | ||
uct_param_search lock_free 1 | ||
uct_param_search virtual_loss 1 | ||
EOF | ||
|
||
# Append 2>/dev/stderr to invocation, otherwise cgos3.tcl will not pass | ||
# through stderr of the Go program | ||
./cgos3.patched.tcl "$NAME" "$PASSWORD" \ | ||
"$FUEGO --size 9 --config config-9-16c.gtp 2>/dev/stderr" \ | ||
gracefully_exit_server-9-16c |