Nicolai Stange <[email protected]> writes: > Hi Bjorn-Helge, > > thank you very much for your reply! > > Bjørn-Helge Mevik <[email protected]> writes: >> (We did have some problems when using srun inside the script, but I >> believe mpirun should work.) > Indeed it does for OpenMPI and MVAPICH2. > Certainly, this will become our preferred solution. > Do you remember what exactly the problems you had with srun have been?
I think so. The explicit "/usr/bin/srun --ntasks=1 --nodes=1" "eats up" one tasks, so if you say salloc --ntasks=10 /usr/bin/srun --ntasks=1 --nodes=1 --preserve-env myscript you cannot use srun somecommand in myscript. You must use srun --ntasks=9 somecommand -- Regards, Bjørn-Helge Mevik, dr. scient, Department for Research Computing, University of Oslo
