Job Submission for PBS

Jaco Schieke spam4jaco at yahoo.com
Wed Apr 18 22:34:38 PDT 2001


> > I am looking at needing a
> > number of different queues for anything from things like matlab jobs, to
> > fluent/fidap jobs, and to mpi runs and I want to keep the confusion to a
> > minimum.
>
> I'd suggest writing a shell script for each kind of job. For
> example:
>
> batch_run_matlab matlab_input
> batch_run_fluent fluent_input
>
Here's what were using.  It does not address queues, but does MPI.

cd $PBS_O_WORKDIR
umask 022
NPROCS=`cat $PBS_NODEFILE | wc -l`
MPIRUN_ARGS="-v -machinefile ${PBS_NODEFILE} -np ${NPROCS}"
DACAPOEXE="dacapo.run_mpi"
echo mpirun ${MPIRUN_ARGS} /usr/local/bin/${DACAPOEXE} $*
mpirun ${MPIRUN_ARGS} /usr/local/bin/${DACAPOEXE} $*
RSH="/usr/local/bin/ssh -a -k -n -x"
KILL="/usr/local/bin/skill -v -9"
for node in `cat $PBS_NODEFILE`
do
        $RSH $node $KILL $DACAPOEXE
done


Jaco Schieke






More information about the Beowulf mailing list