Skip to content

Commit 3c86a92

Browse files
Remove array job from this file
1 parent 70d107e commit 3c86a92

File tree

1 file changed

+0
-27
lines changed
  • mkdocs-project-dir/docs/Supplementary

1 file changed

+0
-27
lines changed

mkdocs-project-dir/docs/Supplementary/Slurm.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -184,30 +184,3 @@ JobID User JobName Start End Alloc
184184
If a job ended and didn't create the files you expect, check the start and end times to see whether it ran out of wallclock time.
185185

186186
If a job only ran for seconds and didn't produce the expected output, there was probably something wrong in your script - check the .out.txt and .err.txt files in the directory you submitted the job from for errors.
187-
188-
### Array job
189-
190-
A job array is a group of jobs with the same executable and resource requirements, but different input files. A job array can be submitted, controlled, and monitored as a single unit. Each job submitted from a job array shares the same job ID ` %A` as the job array and is uniquely referenced using an array index `%a`.
191-
192-
Important note: The maximum job array size that Slurm is configured for is `MaxArraySize = 1000`. Slurm will reject the job submission with the following error message: “Job array index too large. Job not submitted.” if the job array size is greated then the MaxArraySize limit.
193-
194-
Taking a simple example e.g. `myarrayjob` to process 10 data files (csv):
195-
196-
```
197-
#!/bin/bash
198-
#SBATCH --ntasks=1
199-
#SBATCH --cpus-per-task=1
200-
#SBATCH --job-name=myRarray
201-
#SBATCH --time=00:30:00
202-
#SBATCH --array=1-10
203-
204-
myprogram datset${SLURM_ARRAY_TASK_ID}.csv
205-
206-
```
207-
The array is created by Slurm directive `--array=1-10` by including elements numbered [1-10] to represent our 10 input files.
208-
The environment variable `$SLURM_ARRAY_TASK_ID` in the the job script will be expanded at submission time to give the job index.
209-
When the array job is submitted, Slurm will create 10 jobs under the single job ID. The job array script is submitted in the usual way:
210-
211-
```
212-
sbatch myarrayjob
213-
```

0 commit comments

Comments
 (0)