#!/bin/sh #PBS -A xy44_0001 #PBS -l walltime=02:00,nodes=1:ppn=1 # CAC's batch manager always always resets ppn=1 # For a different ppn value, use -ppn in mpiexec #PBS -N OneNode8processes #PBS -j oe #PBS -q v4 # Count the number of nodes nnode=$(wc -l < $PBS_NODEFILE) ncore=8 np=$(($ncore*$nnode)) # Boot mpi on the nodes mpdboot -n $nnode --verbose -r /usr/bin/ssh -f $PBS_NODEFILE # Now execute... note, in mpiexec, the -ppn flag must precede the -n flag mpiexec -ppn $ncore -n $np $HOME/CIS4205/helloworld > $HOME/CIS4205/hifile mpiexec -ppn $ncore -n $np hostname mpdallexit