#!/bin/bash -x ############################################################ ## Template PBS Job Script for Parallel Job on Myrinet Nodes ############################################################ ### Set the job name #PBS -N fpi ### Set the queue to submit this job. #PBS -q default ### Set the number of nodes that will be used. #PBS -l nodes=4:ppn=1:myrinet export NPROCS=`wc -l $PBS_NODEFILE |gawk '//{print $1}'` echo The master node of this job is `hostname` echo The working directory is `echo $PBS_O_WORKDIR` echo The node file is $PBS_NODEFILE echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" echo This job runs on the following nodes: echo `cat $PBS_NODEFILE` echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" echo This job has allocated $NPROCS nodes echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" cd $PBS_O_WORKDIR /opt/gmpi.intel/bin/mpirun -np $NPROCS -machinefile $PBS_NODEFILE fpi