How to use array jobs in SLURM: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
(Created page with " <syntaxhighlight lang=bash> #!/bin/bash #SBATCH --account=def-someuser #SBATCH --time=0-0:5 #SBATCH --array=1-10 ./myapplication $SLURM_ARRAY_TASK_ID </syntaxhighlight>")
 
No edit summary
Line 1: Line 1:
= General =


Job arrays in [[SLURM]] allow you to run many jobs using '''one and same''' job script.





Revision as of 18:14, 22 July 2022

General

Job arrays in SLURM allow you to run many jobs using one and same job script.


#!/bin/bash
#SBATCH --account=def-someuser
#SBATCH --time=0-0:5
#SBATCH --array=1-10
./myapplication $SLURM_ARRAY_TASK_ID