title: Specifying SLURM Resources When Executing Multiple Jobs in Parallel
body: <p>According to the answers here <a href="https://stackoverflow.com/questions/39186698/what-does-the-ntasks-or-n-tasks-does-in-slurm/39212030#39212030">What does the --ntasks or -n tasks does in SLURM?</a> one can run multiple jobs in parallel via <code>ntasks</code> parameter for sbatch followed by <code>srun</code>. To ask a follow up question - how would one specify the amount of memory needed when running jobs in parallel like so? </p>
  
  <p>If say 3 jobs are running in parallel each needing 8G of memory, would one specify 24G of memory in <code>sbatch</code>(i.e. the sum of memory from all jobs) or not give memory parameters in <code>sbatch</code> but instead specify 8G of memory for each <code>srun</code>? </p>