#!/bin/sh # # DO NOT SUBMIT THIS SCRIPT AS IT IS, IT IS JUST AN EXAMPLE # # file: pbsexample # # purpose: advanced 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 pbsexample # Request 4 nodes for the job. #PBS -l nodes=4 # Request 10 minutes of wall-clock time. #PBS -l walltime=00:10:00 # Request regular output (stdout) and error output (stderr) to the same file. #PBS -j oe # Send mail when the job aborts (a) or exits (e). #PBS -m ae # 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 helloworld