Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HCC docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Holland Computing Center
HCC docs
Commits
3e679466
Verified
Commit
3e679466
authored
6 years ago
by
Adam Caprez
Browse files
Options
Downloads
Patches
Plain Diff
Update "Submitting a Job Array" page.
parent
e77eb119
No related branches found
Branches containing commit
No related tags found
1 merge request
!18
Update Submitting Jobs section.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content/guides/submitting_jobs/submitting_a_job_array.md
+12
-28
12 additions, 28 deletions
content/guides/submitting_jobs/submitting_a_job_array.md
with
12 additions
and
28 deletions
content/guides/submitting_jobs/submitting_a_job_array.md
+
12
−
28
View file @
3e679466
1.
[
HCC-DOCS
](
index.html
)
2.
[
HCC-DOCS Home
](
HCC-DOCS-Home_327685.html
)
3.
[
HCC Documentation
](
HCC-Documentation_332651.html
)
4.
[
Submitting Jobs
](
Submitting-Jobs_332222.html
)
<span id="title-text"> HCC-DOCS : Submitting a Job Array </span>
================================================================
Created by
<span
class=
"author"
>
Derek Weitzel
</span>
, last modified by
<span
class=
"editor"
>
Carrie Brown
</span>
on Jun 29, 2017
+++
title = "Submitting a Job Array"
description = "How to use job arrays with the SLURM scheduler."
+++
A job array is a set of jobs that share the same submit file, but will
run multiple copies with a environment variable incremented. These are
useful when you need to process a series of files, or if you need to run
the same application multiple times.
Creating a Array Submit File
----------------------------
### Creating a Array Submit File
An array submit file is very similar to the example submit files
in
[
Submitting Jobs
](
Submitting-Jobs_332222.html
)
.
**example.slurm**
in
[
Submitting Jobs
](
{{
<
relref
"/
guides
/
submitting_jobs
/
_index.md
"
>
}}).
```
syntaxhighlighter-pre
{{% panel theme="info" header="example.slurm" %}}
{{
<
highlight
batch
>
}}
#!/bin/sh
#SBATCH --array=0-31
#SBATCH --time=03:15:00 # Run time in hh:mm:ss
...
...
@@ -37,18 +27,12 @@ module load example/test
echo "I am task $SLURM_ARRAY_TASK_ID on node
`hostname`
"
sleep 60
```
{{
<
/
highlight
>
}}
{{% /panel %}}
The submit file above will output the
`$SLURM_ARRAY_TASK_ID`
, which will
be different for every one of the 32 (0-31) jobs, to the output files.
Job Arrays in SLURM have more features than this brief description,
please visit
the
<a
href=
"https://slurm.schedmd.com/job_array.html"
class=
"external-link"
>
SLURM Documentation
</a>
for
more detailed information.
please visit the
[
SLURM Documentation
](
https://slurm.schedmd.com/job_array.html
)
for more detailed information.
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