#!/bin/bash
# Define parallel environment (ompi) and the number of CPUs (2)
#$ -pe ompi 4
# Specify the job name in the queue system
#$ -N MPI_Job
# Start the script in the current working directory
#$ -cwd
# Specify where standard output and error are stored
#$ -o MPI-stdo.output
#$ -e MPI-stderr.output
# Put the name of your compiled MPI file
myjob=ex3.x
export PATH=/usr/local/openmpi/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/openmpi/lib:$LD_LIBRARY_PATH
mpiexec -n $NSLOTS $myjob
|