diff --git a/doc/man/man1/sbatch.1 b/doc/man/man1/sbatch.1 index 4cc3f218aa90357c20bca805c58f897f2b02b96b..29591e32ebdb76a5840d216d589b7e6a3d6cdd6b 100644 --- a/doc/man/man1/sbatch.1 +++ b/doc/man/man1/sbatch.1 @@ -1887,9 +1887,6 @@ SLURM_NODE_ALIASES=ec0:1.2.3.4:foo,ec1:1.2.3.5:bar \fBSLURM_NODEID\fR ID of the nodes allocated. .TP -\fBSLURMD_NODENAME\fR -Names of all the allocated nodes. -.TP \fBSLURM_NTASKS\fR (and \fBSLURM_NPROCS\fR for backwards compatibility) Same as \fB\-n, \-\-ntasks\fR .TP @@ -1954,6 +1951,9 @@ hardware component type. .TP \fBSLURM_UMASK\fR The \fIumask\fR in effect when the job was submitted. +.TP +\fBSLURMD_NODENAME\fR +Name of the node running the job script. .SH "EXAMPLES" .LP diff --git a/doc/man/man1/srun.1 b/doc/man/man1/srun.1 index f5f96ab7e9f40f179adaa6a18f8b84e4551fad06..baeff438e47863cccf877280e29e15c323b441e7 100644 --- a/doc/man/man1/srun.1 +++ b/doc/man/man1/srun.1 @@ -2635,7 +2635,11 @@ A period is used to separate each hardware component type. .TP \fBSLURM_UMASK\fR The \fIumask\fR in effect when the job was submitted. - +.TP +\fBSLURMD_NODENAME\fR +Name of the node running the task. In the case of a parallel job executing on +multiple compute nodes, the various tasks will have this environment variable +set to different values on each compute node. .TP \fBSRUN_DEBUG\fR Set to the logging level of the \fBsrun\fR command.