Try using the info parameter in MPI::Intracomm::Spawn().
In this structure, you can say in which hosts you want to spawn.

Info parameters for MPI spawn:
http://www.mpi-forum.org/docs/mpi-20-html/node97.htm


2007/12/12, Elena Zhebel <ezhebel@fugro-jason.com>:
Hello,
 
I'm working on a MPI application where I'm using OpenMPI instead of MPICH.
In my "master" program I call the function MPI::Intracomm::Spawn which spawns "slave" processes. It is not clear for me how to spawn the "slave" processes over the network. Currently "master" creates "slaves" on the same host.
If I use 'mpirun --hostfile openmpi.hosts' then processes are spawn over the network as expected. But now I need to spawn processes over the network from my own executable using MPI::Intracomm::Spawn, how can I achieve it?
 
Thanks in advance for any help.
Elena
 

_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users