Job Submission for PBS

Jaco Schieke spam4jaco at yahoo.com
Thu Apr 19 01:34:38 EDT 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



_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list