Example for a Batch Script for Nightshade/Venom

#!/bin/sh
#PBS -N inexe
#PBS -j oe
#PBS -o inexe.log
#PBS -m abe
#PBS -q normal
#PBS -l nodes=2

# go to proper location
cd $PBS_O_WORKDIR
echo beginning job id $PBS_JOBID '('$PBS_JOBNAME')' on host `hostname`

# get processor info
NPROCS=`wc -l < $PBS_NODEFILE`
echo running on $NPROCS processors

# run parallel job
export PGHPF_NP=$NPROCS
export PGHPF_STAT=all
export PGHPF_HOST=-file=$PBS_NODEFILE
$PBS_O_WORKDIR/./inexe


This is an example for a batch script for Nighshade and Venom. Nightshade has 32 nodes, Venom 64, but they are usually not all available. The batch script in this form should be in the same directory as the executable and the the input-file.

Back to the supercomputing page
Katrin Heitmann / LANL / heitmann@lanl.gov / revised January 20
Valid HTML 4.0!