#!/bin/bash #PBS -l nodes=2 # This is a PBS job submission script. It assumes that there are 2 2-processor # nodes in the PBS cluster. It also assumes that mpihello has been compiled # in the local directory by typing: # # % pgf77 -o mpihello mpihello.f -lfmpich -lmpich # # PBS will reserve 2 nodes and then execute this script. "mpirun" uses # the PBS_NODEFILE environment variable as the list of machines on which # # IMPORTANT NOTE: Be sure to modify the "cd" command below to switch # to the directory in which you are currently working! Also modify the # setting of the PGI environment variable as appropriate for your # installation # set -x PGI=/usr/local/pgi export PGI export PBS=/usr/local/pbs PATH=$PATH:$PBS/sbin:$PGI/linux86/bin export PATH cd /u/jdelia/HERRA/BENCH/MPIHELLO /usr/local/bin/mpirun -np 11 mpihello.exe &> mpihello.log