SGE parallel job example

#!/bin/bash

#$ -P euclid
#$ -cwd
#$ -j y
#$ -m n
#$ -M apiemont@mpe.mpg.de
#$ -N impitest
#$ -pe impi_hydra 64
##$ -q p.hydra
#$ -R y

# print date and time
date
module load impi
echo “I got $NSLOTS slots to run on!”
mpirun -np $NSLOTS ./phello2
# print date and time again
date