Skip to content
Snippets Groups Projects
Commit 59d22ac5 authored by Morris Jette's avatar Morris Jette
Browse files

Add initial version of job array web page

parent ded211de
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ generated_html = \
ibm.html \
ibm-pe.html \
jobacct_gatherplugins.html \
job_array.html \
job_exit_code.html \
job_launch.html \
job_submit_plugins.html \
......
......@@ -379,6 +379,7 @@ generated_html = \
ibm.html \
ibm-pe.html \
jobacct_gatherplugins.html \
job_array.html \
job_exit_code.html \
job_launch.html \
job_submit_plugins.html \
......
......@@ -13,6 +13,7 @@ Documenation for other versions of Slurm is distributed with the code</b></p>
<li><a href="quickstart.html">Quick Start User Guide</a></li>
<li><a href="man_index.html">Man Pages</a></li>
<li><a href="rosetta.html">Rosetta Stone of Workload Managers</a></li>
<li><a href="job_array.html">Job Array Support</a></li>
<li><a href="cpu_management.html">CPU Management User and Administrator Guide</a></li>
<li><a href="mpi_guide.html">MPI and UPC Users Guide</a></li>
<li><a href="mc_support.html">Support for Multi-core/Multi-threaded Architectures</a></li>
......@@ -108,6 +109,6 @@ Documenation for other versions of Slurm is distributed with the code</b></p>
</li>
</ul>
<p style="text-align:center;">Last modified 17 January 2013</p>
<p style="text-align:center;">Last modified 23 January 2013</p>
<!--#include virtual="footer.txt"-->
<!--#include virtual="header.txt"-->
<h1>Job Array Support</h1>
<h2>Overview</h2>
<p>Support for job arrays was added in Slurm version 2.6.
Job arrays offer a mechanism for submitting and managing collections of similar
jobs.
All jobs must have the same initial options (e.g. size, time limit, etc.),
however it is possible to change some of these options after the job has begun
execution using the <i>scontrol update job ...</i> command.
Job arrays are only supported for batch jobs and the array index values are
specified using the <i>--array</i> or <i>-a</i> option of the <i>sbatch</i>
command. The option argument can be specific array index values, a range of
index values, and an optional step size as shown in the examples below.
Note the the minimum index value is zero and the maximum value a Slurm
configuration parameter <i>MaxArraySize</i> minus one.
Jobs which are part of a job array will have the environment variable
<i>SLURM_ARRAY_ID</i> set to its array index value.</p>
<pre>
# Submit a job array with index values between 0 and 31
$ sbatch --array=0-31 -N1 tmp
# Submit a job array with index values of 1, 3, 5 and 7
$ sbatch --array=1,3,5,7 -N1 tmp
# Submit a job array with index values between 1 and 7
# with a step size of 2 (i.e. 1, 3, 5 and 7)
$ sbatch --array=1-7:2 -N1 tmp
</pre>
<h2>Scontrol Command Use</h2>
<p>When a job array is submitted using the <i>sbatch</i> command an independent
job is submitted for each element of the array, however substantial performance
improvement is realized through the use of a single job submit request and only
needing to validate the request options one time.
Use of the <i>scontrol show job</i> option shows two new fields related to
job array support.
The <i>JobID</i> is a unique identifier for the job.
The <i>ArrayJobID</i> is the <i>JobID</i> of the first element of the job
array.
The <i>ArrayTaskID</i> is the array index of this particular entry.
In order to modify a job, always use the <i>JobID</i> specification.</p>
<pre>
$ scontrol show job
JobId=13 ArrayJobId=13 ArrayTaskId=1 Name=tmp
...
JobId=14 ArrayJobId=13 ArrayTaskId=2 Name=tmp
...
JobId=15 ArrayJobId=13 ArrayTaskId=3 Name=tmp
....
$ scontrol update JobId=15 TimeLimit=30
</pre>
<p style="text-align:center;">Last modified 23 January 2013</p>
<!--#include virtual="footer.txt"-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment