#!/bin/sh # # DO NOT SUBMIT THIS SCRIPT AS IT IS, IT IS JUST AN EXAMPLE # # file: pbssample.simple # # purpose: simple template for PBS (Portable Batch System) script # # remarks: a line beginning with # is a comment; # a line beginning with #PBS is a pbs command; # assume (upper/lower) case to be sensitive; # # use: submit job with # qsub pbssample.simple # Request 24 nodes for the job. #PBS -l nodes=24 # If nodes > my current limit, the job mus be run as a risk job. This is specified as: #PBS -q riskjobb # Request 1 hour of wall-clock time. #PBS -l walltime=1:00:00 # Request regular output (stdout) and error output (stderr) to the same file. #PBS -j oe # Send mail when the job begins (b), exits (e) or aborts (a). #PBS -m abe # Goto the directory from which you submitted the job. cd $PBS_O_WORKDIR # Start the job with mpprun on the nodes that the batch queue system # have allocated for your job. (PBS -l nodes above). mpprun hello_world.icc.mpich