mpirun -ppn # creates # process per node.
It works fine with ssh
??--[ 15:05:57 ]--\> $ mpirun -hosts "mn1,mn2" -ppn 2 -np 4 ~/a.out
Hello world!I'm 0 of 4 on mn1
Hello world!I'm 2 of 4 on mn2
Hello world!I'm 1 of 4 on mn1
Hello world!I'm 3 of 4 on mn2
however, It doesn't with LSF (-n 32 will assign two nodes with 16 procs to the job):
??--[ 16:39:41 ]--\> $ bsub -q pruebas -n 32 -I mpirun -ppn 2 -np 4 ~/a.out
Job <29169> is submitted to queue <pruebas>.
<<Waiting for dispatch ...>>
<<Starting on mn339>>
Hello world!I'm 0 of 4 on mn339
Hello world!I'm 1 of 4 on mn339
Hello world!I'm 2 of 4 on mn339
Hello world!I'm 3 of 4 on mn339
mpirun does detect it is under an LSF job.
any ideas?