Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
59d22ac5
Commit
59d22ac5
authored
12 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add initial version of job array web page
parent
ded211de
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/html/Makefile.am
+1
-0
1 addition, 0 deletions
doc/html/Makefile.am
doc/html/Makefile.in
+1
-0
1 addition, 0 deletions
doc/html/Makefile.in
doc/html/documentation.shtml
+2
-1
2 additions, 1 deletion
doc/html/documentation.shtml
doc/html/job_array.shtml
+62
-0
62 additions, 0 deletions
doc/html/job_array.shtml
with
66 additions
and
1 deletion
doc/html/Makefile.am
+
1
−
0
View file @
59d22ac5
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
doc/html/Makefile.in
+
1
−
0
View file @
59d22ac5
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
doc/html/documentation.shtml
+
2
−
1
View file @
59d22ac5
...
...
@@ -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"-->
This diff is collapsed.
Click to expand it.
doc/html/job_array.shtml
0 → 100644
+
62
−
0
View file @
59d22ac5
<!--#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"-->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment