![](/images/new-backgrounds/1308340/308340175x1.webp)
srun Option | Description | |
| Root attempts to submit or run a job as | |
| normal user. | |
Establish a time limit to terminate the job | ||
after specified number of minutes. | ||
| ||
Root attempts to submit or run a job as | ||
| group. | |
Allocate resource and spawn a shell. | ||
| ||
Immediately exit after allocating resources. | ||
Allocate immediately or fail. | ||
| ||
Share nodes with other running jobs. | ||
| SHARED=FORCE shares all nodes in | |
| partition. | |
| SHARED=YES shares nodes if and only if | |
| ||
| SHARED=NO means do not share the node. | |
Overcommit resources. | ||
| ||
Submit in “batch mode”. | ||
| ||
Run a job step relative to node n of the | ||
| current allocation. It is about placing tasks | |
within allocation. | ||
| ||
Specify the working directory of the job. | ||
| ||
Do not automatically terminate a job if one | ||
of the nodes it has been allocated fails. | ||
| ||
The srun command uses nthreads to | ||
initiate and control the parallel job. | ||
| ||
Prepend task number to lines of | ||
stdout/stderr. | ||
| ||
Do not line buffer stdout from remote tasks. | ||
| ||
Distribution method for remote processes. | ||
| ||
| Identify the type of MPI to be used. | |
| Initiate a job step under an already allocated | |
| job id. | |
Verbose operation. | ||
A debug level for slurmd. | ||
|
You cannot use this option.
bsub -W runlimit
You cannot use this option.
You cannot use this option.
You cannot use this option.
You cannot use this option.
You cannot use this option.
Use when launching parallel tasks.
Meaningless under
Use as an argument to srun when launching parallel tasks.
Job starts in job submission directory by default.
When creating allocation,
Use as an argument to srun when launching parallel tasks.
Use as an argument to srun when launching parallel tasks.
Use as an argument to srun when launching parallel tasks.
Use as an argument to srun when launching parallel tasks.
Use as an argument to srun when launching parallel tasks.
Do not use. SLURM_JOBID is set in job environment to associate job with SLURM allocation.
Use as an argument to srun when launching parallel tasks.
Use as an argument to srun when launching parallel tasks.
88 Using LSF