How to use array jobs in SLURM: Difference between revisions
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
Job arrays in SLURM allow you to run many jobs using '''one and same''' job script. | Job arrays in SLURM allow you to run many jobs using '''one and same''' job script. | ||
The job script you submit with the <code>sbatch</code> command does not accept any parameters. | |||
Like this: | |||
$ sbatch array_job.slurm | |||
Revision as of 18:16, 22 July 2022
General
Job arrays in SLURM allow you to run many jobs using one and same job script.
The job script you submit with the sbatch
command does not accept any parameters.
Like this:
$ sbatch array_job.slurm
#!/bin/bash
#SBATCH --account=def-someuser
#SBATCH --time=0-0:5
#SBATCH --array=1-10
./myapplication $SLURM_ARRAY_TASK_ID