Would the following be a typical way that someone would run a series of N
job steps within a batch allocation of M cores?  

 

For example, 4 steps within an allocation of 2 cores.

 

#! /bin/bash

#SBATCH -n2

 

srun -n1 prog1 &

srun -n1 prog2 &

srun -n1 prog3 &

srun -n1 prog4 &

 

wait

 

Do the 3rd and 4th job steps wait to start until the 1st and/or 2nd step is
completed?

 

Thanks

Reply via email to