#!/bin/sh # Number of processors to use NP=2 # Program name PROG=bp # If you want set the USER to your username (uncomment the next line) # USER=aubcls23 # To make a scratch directory if needed uncomment the next line # mkdir /scratch/$USER # To copy your program to the scratch directory and cd to that directory # uncomment the next two lines # cp $PROG /scratch/$USER # cd /scratch/$USER # Run your program mpirun -np $NP $PROG # Or Run and time your program (uncomment the next line and comment # the previous one) # time mpirun -np $NP $PROG