A special case consideration might be that you need to ensure that you will have exclusive access to all nodes assigned to your job whether or not you need all of the processors. For example:
#PBS -l nodes=5:ppn=n #where n is the max processors on a node
mpiexec -n 8 myprogram #run your program with mpiexec
|
This example will assign
n processors per node to your job (over 5 nodes) but you will only use 8 while
n-8 processors will go unused rather than being shared with other users. This will guarantee exclusive access to all of the nodes even though your job might not need all of the processors on those nodes.
Another special case consideration might be that you want exclusive access to a node for
multiple jobs, not a single job. In order to accomplish this, use the following options in your PBS batch script:
#PBS -l nodes=1:ppn=1
#PBS -W x=NACCESSPOLICY:SINGLEUSER
|
This combination of options will give the user one node, and only one processor (
ppn), but will have exclusive access to the entire node. The remaining processors are still available for additional jobs submitted by the same user.