#!/bin/csh
#
# Example PBS script to run a job on the myrinet-3 cluster.
# The lines beginning #PBS set various queuing parameters.
#
# o -N Job Name
#PBS -N basic_mpi
#
# o -M Where to send mail
# o -m Conditions for which mail is sent a=abort, e=terminates, b=begins
#
# o -l resource lists that control where job goes
# p4 sends to myrinet-3 cluster.
#PBS -l nodes=3:p4
#
# o Where to write output
#PBS -e stderr
#PBS -o stdout
#
# o Export all my environment variables to the job
#PBS -V
#
cd ~
mkdir basic_mpi_example
cd basic_mpi_example
cp /s00/examples/basic_mpi/* .
make
cat $PBS_NODEFILE > mf
set ncpus = ( `wc -l mf | awk '{print $1}'` )
/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/intel/bin/mpirun.ch_gm -machinefile mf -
-gm-kill 5 -v -np $ncpus ./a.out
|