ICC Home Privacy and Legal Notice LC User Documents Banner

UCRL-WEB-201386

SLURM Reference Manual


General Constraints

These SRUN constraints can apply to any job (unlike those in the next subsection).

-C clist (uppercase, --constraint=clist)
runs your job on those nodes having the properties in clist, where clist is a list of features assigned for this purpose by SLURM system administrators (the features may vary by network or machine). SRUN option -C thus behaves like PSUB constraint option -c (lowercase, see the "Helpful PSUB Options" section of the EZJOBCONTROL guide.
To conjoin (AND) multiple constraints, separate them in clist by using an ampersand (c1&c2). To disjoin (OR) multiple constraints, separate them in clist by using a vertical bar (c3|c4).
If no nodes have the feature(s) that you require with -C, then the SLURM job manager will reject your job.
--contiguous=yes|no
specifies whether or not your job requires a contiguous range of nodes. The default (YES) demands contiguous nodes, while alternative NO allows noncontiguous execution.
--exclusive
dedicates only whole nodes rather than individual processors to your job, even if SLURM's select/con_res (consumable resources) plugin is enabled.
--job-mem=size
estimates the maximum amount of real memory per node that your job will use, where size is an integer number of megabytes. If you use both --mem and --job-mem, the former value must exceed the latter.
--mem=size
specifies a minimum amount of real memory per node, where size is an integer number of megabytes. See also --job-mem.
--mincores=n
specifies a minimum number n of cores (CPUs) per socket.
--mincpus=n
specifies a minimum number n of CPUs per node.
--minsockets=n
specifies a minimum number n of sockets per node.
--minthreads=n
specifies a minimum number n of threads per core.
--tmp=size
specifies a minimum amount of temporary disk space per node, where size is an integer number of megabytes.
-w hosts (lowercase, --nodelist=hosts)
specifies by name the individual nodes that must be included in the set of nodes on which your job runs (perhaps along with others unspecified). Option -w is incompatible with SRUN option -r (--relative). Here hosts may have any of three formats:
host1,host2,...
is a comma-delimited list of node names (e.g., mcr100,mcr200,...).
host[na-nb,nc,...]
is a range of node names, perhaps mixed with individual nodes in a comma-delimited sublist (e.g., mcr[1-256,500,...]).
filename
is a file that contains node information in either of the previous two formats (SRUN interprets any string containing the slash (/) character as a file name).
-x hosts (lowercase, --exclude=hosts)
specifies by name the individual nodes that must be excluded from the set of nodes on which your job runs (perhaps along with others unspecified). Option -x is incompatible with SRUN option -r (--relative). Here hosts may have any of three formats:
host1,host2,...
is a comma-delimited list of node names (e.g., mcr100,mcr200,...).
host[na-nb,nc,...]
is a range of node names, perhaps mixed with individual nodes in a comma-delimited sublist (e.g., mcr[1-256,500,...]).
filename
is a file that contains node information in either of the previous two formats (SRUN interprets any string containing the slash (/) character as a file name).



Navigation Links: [ Document List ] [ HPC Home ] [ Next ]