Lev, if you drop "mpiexec" from your command line, you should see the desired behaviour, i.e.,

$ srun -n X program

(Also, be sure to recognize the difference between "-n" and "-N"!)

Andy

On 9/23/2014 2:49 PM, Lev Givon wrote:
I have OpenMPI 1.8.2 compiled with PMI support enabled and slurm 2.6.5 
installed on an
8-CPU machine running Ubuntu 14.04.1. I noticed that attempting to any
program compiled against said OpenMPI installation via srun using

srun -n X mpiexec program

with X > 1 effectively is equivalent to running

mpiexec -np X program

X times. Is this behavior expected? Running the program via sbatch only causes 1
run over X MPI processes.

Reply via email to