Update Slurm job arrays authored by LOGER Benoit's avatar LOGER Benoit
...@@ -36,7 +36,7 @@ Here is an example of how you can use slurm variables to configure the execution ...@@ -36,7 +36,7 @@ Here is an example of how you can use slurm variables to configure the execution
#SBATCH --job-name=myarray_job # Name of the parent job #SBATCH --job-name=myarray_job # Name of the parent job
#SBATCH --ntasks=1 # Each child job run 1 task #SBATCH --ntasks=1 # Each child job run 1 task
#SBATCH --cpus-per-task=1 # Each task require 1 cpu #SBATCH --cpus-per-task=1 # Each task require 1 cpu
#SBATCH --array=1-10%5 # Running 50 child jobs with IDs in [1,50] #SBATCH --array=1-10%5 # Running 10 child jobs with IDs in [1,10]
#SBATCH --mem-per-cpu=1gb # Using at most 1gb of memory per cpu #SBATCH --mem-per-cpu=1gb # Using at most 1gb of memory per cpu
#SBATCH --time=0-00:30:00 # Child jobs will be killed if longer than 30 minutes #SBATCH --time=0-00:30:00 # Child jobs will be killed if longer than 30 minutes
#SBATCH --output=logs/array_%A-%a.logs # One log file per child job #SBATCH --output=logs/array_%A-%a.logs # One log file per child job
... ...
......