mpi.sh


#! /bin/bash
## -p partition (also works, see documentation for other alternatives)
#SBATCH --partition=TC
#SBATCH --job-name=hello-mpitest
#SBATCH --error=hello-mpitest_%j.err
#SBATCH --output=hello-mpitest_%j.out
#SBATCH --time=00:00:05
##  05 is an arbitrary limit for this course.
## --mem memory required per node
#SBATCH --mem=1G
#SBATCH --ntasks=6
#SBATCH --nodes=3
#SBATCH --ntasks-per-node=2
module load openmpi/openmpi-1.10.2
## A bit redundant given my .bashrc
module list
mpirun ./$1 $2
exit 0
---------------------------------------------A Run-------------------------------------------