salloc \- Obtain a SLURM job allocation (a set of nodes), execute a command, and then release the allocation when the command is finished.
salloc \- Obtain a SLURM job allocation (a set of nodes), execute a command, and then release the allocation when the command is finished.
...
@@ -352,12 +352,13 @@ partition, the job will be rejected.
...
@@ -352,12 +352,13 @@ partition, the job will be rejected.
.TP
.TP
\fB\-n\fR, \fB\-\-ntasks\fR[=]<\fInumber\fR>
\fB\-n\fR, \fB\-\-ntasks\fR[=]<\fInumber\fR>
salloc does not launch tasks, it requests an allocation of resources and submits
salloc does not launch tasks, it requests an allocation of resources and
a batch script. However this \-\-tasks option advizes the SLURM controller
executed some command. This option advises the SLURM controller that job
that job steps run within this allocation will launch a maximum of \fInumber\fR
steps run within this allocation will launch a maximum of \fInumber\fR
tasks. This option, possibly with collaboration with the \-\-cpus\-per\-task
tasks and sufficient resources are allocated to accomplish this.
option, will directly impact the number of processors granted to the job
The default is one task per socket or core (depending upon the value
allocation.
of the \fISelectTypeParameters\fR parameter in slurm.conf), but note
that the \fB\-\-cpus\-per\-task\fR option will change this default.
.TP
.TP
\fB\-\-nice\fR[=]<\fIadjustment\fR>
\fB\-\-nice\fR[=]<\fIadjustment\fR>
...
@@ -392,7 +393,7 @@ or \fISelectType=CR_Socket_Memory\fR is configured.
...
@@ -392,7 +393,7 @@ or \fISelectType=CR_Socket_Memory\fR is configured.
.TP
.TP
\fB\-\-ntasks\-per\-node\fR=\fIntasks\fR
\fB\-\-ntasks\-per\-node\fR=\fIntasks\fR
Request that no more than \fIntasks\fR be invoked on each node.
Request that no more than \fIntasks\fR be invoked on each node.
This is similiar to using \fB\-\-cpus\-per\-task\fR=\fIncpus\fR
This is similar to using \fB\-\-cpus\-per\-task\fR=\fIncpus\fR
but does not require knowledge of the actual number of cpus on
but does not require knowledge of the actual number of cpus on
each node. In some cases, it is more convenient to be able to
each node. In some cases, it is more convenient to be able to
request that no more than a specific number of ntasks be invoked
request that no more than a specific number of ntasks be invoked
...
@@ -558,7 +559,7 @@ SLURM will normally allocate a TORUS if possible for a given geometry.
...
@@ -558,7 +559,7 @@ SLURM will normally allocate a TORUS if possible for a given geometry.
Specify the geometry requirements for the job. The three numbers
Specify the geometry requirements for the job. The three numbers
represent the required geometry giving dimensions in the X, Y and
represent the required geometry giving dimensions in the X, Y and
Z directions. For example "\-\-geometry=2x3x4", specifies a block
Z directions. For example "\-\-geometry=2x3x4", specifies a block
of nodes having 2 x 3 x 4 = 24 nodes (actually base partions on
of nodes having 2 x 3 x 4 = 24 nodes (actually base partitions on
Blue Gene).
Blue Gene).
.TP
.TP
...
@@ -668,7 +669,8 @@ The block name on Blue Gene systems only.
...
@@ -668,7 +669,8 @@ The block name on Blue Gene systems only.
.LP
.LP
While salloc is waiting for a PENDING job allocation, most signals will cause salloc to revoke the allocation request and exit.
While salloc is waiting for a PENDING job allocation, most signals will cause salloc to revoke the allocation request and exit.
However, if the allocation has been granted and salloc has already started the command speficied in its command line parameters salloc will ignore most signals. salloc will not exit or release the allocation until the command exits. The noteable exception is SIGHUP; a HUP signal will cause salloc to release the allocation and exit without waiting for the command to finish.
However, if the allocation has been granted and salloc has already started the command
specified in its command line parameters salloc will ignore most signals. salloc will not exit or release the allocation until the command exits. The notable exception is SIGHUP; a HUP signal will cause salloc to release the allocation and exit without waiting for the command to finish.