Wednesday, December 05, 2012

Snowpatch QuickStart Guide | WestGrid

Snowpatch QuickStart Guide | WestGrid: "Here is an example of a script to run an MPI program, pn, using 6 processors (3 nodes with 2 processors per node). If the script file is named pn.pbs, submit the job with qsub pn.pbs.
#!/bin/bash

#PBS -l procs=6

# Script for running MPI sample program pn on SnowPatch

cd $PBS_O_WORKDIR

echo "Current working directory is `pwd`"

echo "Running on hosts:"
cat $PBS_NODEFILE

echo "Starting run at: `date`"

mpiexec -n $PBS_NCPUS ./pn

echo "Job finished at: `date`"
"

'via Blog this'