updated evaluation script to work with full paths and run the program from build instead of from the jar

master
melvin 2011-05-25 11:58:03 +08:00
parent c086de5c8b
commit 0bb05e9340
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ 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;
echo --deck1 ~/magarena/$i --ai1 $j --deck2 ~/magarena/$k --ai2 VEGAS --games $l;
done
done
done

View File

@ -4,6 +4,6 @@
#$ -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
SGE_TASK_ID=100
pep=`head -$SGE_TASK_ID ~/magarena/exp/args | tail -1`
java -Xmx1G -cp ~/magarena/build magic.DeckStrCal $pep > $SGE_TASK_ID.out 2> $SGE_TASK_ID.err