weka2.sh
weka2.sh
—
text/x-sh,
0Kb
File contents
#!/bin/sh
# Assumes `mpirun' etc are on path.
# Should configure in full pathname of executables?
MPI=mpich
MACHINEFILE=
TESTMODE=0
PNUMBER=0
if [ $1 = -t ]
then
TESTMODE=1
shift
fi
PNUMBER=$1
shift
if [ -f machines ]
then
/opt/mpich/gnu/bin/mpirun -pg -machinefile ./machines -np $PNUMBER $*
else
if test "$MACHINEFILE" != ""
then
/opt/mpich/gnu/bin/mpirun -pg -machinefile $MACHINEFILE -np $PNUMBER $*
else
/opt/mpich/gnu/bin/mpirun -pg -machinefile /home/jxw5813/machines.LINUX -np $PNUMBER $*
fi
fi
