#!/bin/sh # Export all environment variables #$ -V # Your job name #$ -N pi # Use current working directory #$ -cwd # Join stdout and stderr #$ -j y # PARALLEL ENVIRONMENT: #$ -pe orte 2 # Enable resource reservation #$ -R y # The max hard walltime for this job is 16 minutes (after this it will be killed) #$ -l h_rt=00:16:00 # The max soft walltime for this job is 15 minute (after this SIGUSR2 will be sent) #$ -l s_rt=00:15:00 echo "Got $NSLOTS processors." # The mpirun command. mpirun -np $NSLOTS python pi.py