Sbatch Options

The following table can be used as a reference for the basic flags available to the sbatch, salloc, and few other commands. To get a better understanding of the commands and their flags, please use the “man” command while logged into discover.

For more information on sbatch, please refer to the man pages. Use the following command, after you’ve logged onto Discover:

man sbatch

or

sbatch -help
Option/FlagFunction
-A or –account=accountSpecify computational Project under which the job will run and from which the cpu hours will be deducted
–begin=date_timeDefer the job to run until the specified date_time
-C or –constraint=hasw(or sand)Request certain type of nodes
-d or –dependency=dependlistSpecify job dependencies
-D or –workdir=directorySet the working directory of the batch script before it is executed
–export=environment variables | ALL | NONEIdentify which environment variables are propagated to the batch job
-J or –job-name=nameSet a job name
-N or –nodes=minnodes[-maxnodes]Request that a minimum of minnodes nodes be allocated
-n or –ntasks=numberRequest sufficient resources to launch a maximum of number tasks
–mem-per-node=#MB or –mem-per-cpu=#MBSpecify minimum memory requirement per node or per CPU
–ntasks-per-node=ntasksRequest the maximum ntasks be invoked on each node
-o or –output=filename patternSpecify stdout file
-e or –error=filename patternSpecify stderr file. By default when “-e” is not specified both the stdout and stderr writes into a single file
-p or –partition=partition_nameSpecify an initial partition for the job
-t or –time=timeSet a walltime limit of the job allocation

Category:

Tags: