According to the answers here What does the --ntasks or -n tasks does in SLURM? one can run multiple jobs in parallel via ntasks
parameter for sbatch followed by srun
. To ask a follow up question - how would one specify the amount of memory needed when running jobs in parallel like so?
If say 3 jobs are running in parallel each needing 8G of memory, would one specify 24G of memory in sbatch
(i.e. the sum of memory from all jobs) or not give memory parameters in sbatch
but instead specify 8G of memory for each srun
?