#!/bin/sh ## %%%%%%%%%%%%%% use bash shell #$ -S /bin/bash # Give the job a name #$ -N mypi_job # set working directory on all host to # directory where the job was started #$ -cwd # send output to job.log (STDOUT + STDERR) #$ -o mypi_job.log #$ -j y # specify the mpich parallel environment and request 4 # processors from the available hosts #$ -pe mpich 4 # command to run. ONLY CHANGE THE NAME OF YOUR MPI APPLICATION /opt/openmpi/bin/mpirun -nolocal -np $NSLOTS ./mypi