From e5f208246e28967a3b354aa0a6d17feac88efd03 Mon Sep 17 00:00:00 2001
From: Brian Christiansen <brian@schedmd.com>
Date: Mon, 22 Dec 2014 12:10:10 -0800
Subject: [PATCH] Add SLURM_CPUS_PER_TASK to salloc,sbatch,srun man pages.

Bug 1331
---
 doc/man/man1/salloc.1 | 4 ++++
 doc/man/man1/sbatch.1 | 4 ++++
 doc/man/man1/srun.1   | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/doc/man/man1/salloc.1 b/doc/man/man1/salloc.1
index 0f5dc850aa8..c0e7e775b8c 100644
--- a/doc/man/man1/salloc.1
+++ b/doc/man/man1/salloc.1
@@ -1330,6 +1330,10 @@ The reservation ID on Cray systems running ALPS/BASIL only.
 \fBSLURM_CLUSTER_NAME\fR
 Name of the cluster on which the job is executing.
 .TP
+\fBSLURM_CPUS_PER_TASK\fR
+Number of cpus requested per task.
+Only set if the \fB\-\-cpus\-per\-task\fR option is specified.
+.TP
 \fBSLURM_DISTRIBUTION\fR
 Same as \fB\-m, \-\-distribution\fR
 .TP
diff --git a/doc/man/man1/sbatch.1 b/doc/man/man1/sbatch.1
index c5042e3d115..443292b1557 100644
--- a/doc/man/man1/sbatch.1
+++ b/doc/man/man1/sbatch.1
@@ -1571,6 +1571,10 @@ Name of the cluster on which the job is executing.
 \fBSLURM_CPUS_ON_NODE\fR
 Number of CPUS on the allocated node.
 .TP
+\fBSLURM_CPUS_PER_TASK\fR
+Number of cpus requested per task.
+Only set if the \fB\-\-cpus\-per\-task\fR option is specified.
+.TP
 \fBSLURM_DISTRIBUTION\fR
 Same as \fB\-m, \-\-distribution\fR
 .TP
diff --git a/doc/man/man1/srun.1 b/doc/man/man1/srun.1
index d76efaa465a..c40689a9e02 100644
--- a/doc/man/man1/srun.1
+++ b/doc/man/man1/srun.1
@@ -2224,6 +2224,10 @@ jobs, so the value indicates the total count of CPUs on the node.
 For the select/cons_res plugin, this number indicates the number of cores
 on this node allocated to the job.
 .TP
+\fBSLURM_CPUS_PER_TASK\fR
+Number of cpus requested per task.
+Only set if the \fB\-\-cpus\-per\-task\fR option is specified.
+.TP
 \fBSLURM_DISTRIBUTION\fR
 Distribution type for the allocated jobs. Set the distribution
 with \-m, \-\-distribution.
-- 
GitLab