#!/bin/bash # #PBS -lwalltime=00:05:00 #PBS -lnodes=1:ppn=8 #PBS -W group_list=ithaca #PBS -q ithaca_q #PBS -A admn0000 #PBS -j oe # # Choose the MPI distribution. # #export MPIDISTRO=mvapich2-1.4 export MPIDISTRO=openmpi-1.3.3 export LD_LIBRARY_PATH=/apps/packages/$MPIDISTRO/lib:$LD_LIBRARY_PATH export PATH=/apps/packages/$MPIDISTRO/bin:$PATH cd $PBS_O_WORKDIR # # Compile # mpiCC quad_mpi.cpp mv a.out quad mpirun -np 8 ./quad > quad_mpi_output.txt # rm quad # echo "Program output written to quad_mpi_output.txt."