#!/bin/sh # # DO NOT SUBMIT THIS SCRIPT AS IT IS, IT IS JUST AN EXAMPLE # # file: pbssample.advanced # # 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 pbssample.advanced # job name (default is name of pbs script file). #PBS -N myjob # resource limits: number of CPUs to be used #PBS -l nodes=24 # resource limits: max. wall clock time during which job can be running. 3 hours and 20 minutes. #PBS -l walltime=3:20:00 # path/filename for standard output #PBS -o mypath/my.out # path/filename for standard error #PBS -e mypath/my.err # If nodes > my current limit, the job mus be run as a risk job. This is specified as: #PBS -q riskjobb # files to be copied to execution server before script processing starts. # usage: -W stagein=local_file@hostname:remote_file[,...] #PBS -W stagein=/disk/local/target@green:/home/myusername/example/source # start job only after MMDDhhmm, where M=Month, D=Day, h=hour, m=minute # e.g., January 14, 14:30 #PBS -a 01141430 # 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.lam