added script to run AI evaluation on SGE cluster

master
melvin 2011-05-25 11:15:10 +08:00
parent 6ea717f608
commit 657e0ae64c
2 changed files with 18 additions and 0 deletions

9
exp/args.sh Executable file
View File

@ -0,0 +1,9 @@
for i in `cat decks`; do
for j in `cat AIs`; do
for k in `cat decks`; do
for l in `cat games`; do
echo --deck1 $i --ai1 $j --deck2 $k --ai2 VEGAS --games $l;
done
done
done
done

9
exp/array_mag.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
#$ -t 1-1000
#$ -V
#$ -cwd
#$ -e /dev/null
#$ -o /dev/null
#SGE_TASK_ID=100
pep=`head -$SGE_TASK_ID args | tail -1`
java -cp magarena/Magarena.jar magic.DeckStrCal $pep > $SGE_TASK_ID.out 2> $SGE_TASK_ID.err