#!/bin/csh -f # this script submits a 2-process parallel job named pt to # the "mpich" queue # to run it, type: # qsub -pe mpich 2 parallelscript # set the shell to use #$ -S /bin/sh # # Useful stuff, but not necessary: # # Set the name of the batch job #$ -N PT # # specify where to write the stdout and stderr #$ -o $HOME/mpi.out #$ -e $HOME/mpi.err echo "Got $NSLOTS slots." export PATH=$TMPDIR:$PATH cd $SGE_O_WORKDIR mpirun -machinefile $TMPDIR/machines -np $NSLOTS $SGE_O_WORKDIR/pt