What does the –ntasks or -n tasks does in SLURM?
The –ntasks parameter is useful if you have commands that you want to run in parallel within the same batch script. This may be two separate commands separated by an & or two commands used in a bash pipe (|). For example Using the default ntasks=1 #!/bin/bash #SBATCH –ntasks=1 srun sleep 10 & srun sleep … Read more