runall 2.12 KB
#!/bin/csh
#
#   This script runs a set of N jobs on each of the specified
#   systems, using the specified directory to work in.
#   A maximum number of runs can be specified "nruns" and
#   a timeout can also be used to exit early (look for "sleep").
#
#   If you have any questions, call Rich Webb

set echo

@ nruns = 10000

set x = d
# set tx = nctc2
set tx = all3

cd $ROOT/PR
# p_tupdate hw2/chip/rcp
cd rspsim
# make
cd random
# make
cd rsptst
# rsh baraka "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; docomp"

# Just the summaries?
# goto bar

rsh sonya "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; ./rrtgn _$tx $nruns /d/rww/$tx${x} 6 >& /d/rww/$tx${x}.out " < /dev/null >& /dev/null &

rsh mileena "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; ./rrtgn _$tx $nruns /c/rww/$tx${x} 6 >& /c/rww/$tx${x}.out " < /dev/null >& /dev/null &

rsh reptile "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; ./rrtgn _$tx $nruns /d/rww/$tx${x} 6 >& /d/rww/$tx${x}.out " < /dev/null >& /dev/null &

rsh baraka "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; ./rrtgn _$tx $nruns /c/rww/$tx${x} 6 >& /c/rww/$tx${x}.out " < /dev/null >& /dev/null &

rsh kitana "cd /hosts/riscy/$ROOT/PR/rspsim/random/rsptst; ./rrtgn _$tx $nruns /c/rww/$tx${x} 6 >& /c/rww/$tx${x}.out " < /dev/null >& /dev/null &

echo Go............

# 9 days!!!!

@ t = 3 * 24 * 60 * 60

# @ t = 24 * 60 * 60 * 5
# @ t = $t / 2

onintr foo

sleep $t

foo:

onintr bar

rsh sonya "killall rtestgen; sleep 2; killall simv"
rsh mileena "killall rtestgen; sleep 2; killall simv"
rsh reptile "killall rtestgen; sleep 2; killall simv"
rsh baraka "killall rtestgen; sleep 2; killall simv"
rsh kitana "killall rtestgen; sleep 2; killall simv"

wait

sleep 120

bar:

rsh sonya "cd /d/rww ; grep -i fail $tx${x}*out ; cat $tx${x}.*/tot* >> $tx${x}.tots "
rsh mileena "cd /c/rww ; grep -i fail $tx${x}*out ; cat $tx${x}.*/tot* >> $tx${x}.tots "
rsh reptile "cd /d/rww ; grep -i fail $tx${x}*out ; cat $tx${x}.*/tot* >> $tx${x}.tots "
rsh baraka "cd /c/rww ; grep -i fail $tx${x}*out ; cat $tx${x}.*/tot* >> $tx${x}.tots "
rsh kitana "cd /c/rww ; grep -i fail $tx${x}*out ; cat $tx${x}.*/tot* >> $tx${x}.tots "