On Thu, Jun 06, 2013 at 08:56:31AM -0700, Carles Fenoy wrote:
> Alan,
> 
> You should use something like this:
> 
> srun --exclusive -c 4 BINARY1 &
> srun --exclusive -c 4 BINARY2
> wait
> srun --exclusive -c 4 BINARY3 &
> srun --exclusive -c 4 BINARY4
> wait
> ...
> 
> Or you can simply submit 200 sbatch each with its srun command inside
> sbatch -c 4 --wrap="srun BINARY1"
> ...

Along these lines, I spent some time combining GNU parallel with srun.
Documentation is here:
http://docs.rcc.uchicago.edu/software/scheduler/parallel/README.html

For this instance, it the example about parallel working as a mutex and
counting semaphore is probably appropriate:
http://www.gnu.org/software/parallel/man.html#example__working_as_mutex_and_counting_semaphore

Andy

Reply via email to