no, unfortunately there is no way to do that. In fact, each set of child
processes which you spawn has its own MPI_COMM_WORLD. MPI_COMM_WORLD is
static and there is no way to change it at runtime...
Edgar
Rajesh Sudarsan wrote:
Hi,
I have simple MPI program that uses MPI_comm_spawn to create additional
child processes.
Using MPI_Intercomm_merge, I merge the child and the parent communicator resulting in a single expanded user
defined intracommunicator. I know MPI_COMM_WORLD is a constant which is
statically initialized during MPI_Init call. But
is there a way to update the value of MPI_COMM_WORLD at runtime
to reflect this expanded set of processes? Is it possible to some how
reinitialize MPI_COMM_WORLD using ompi_comm_init() function?
Regards,
Rajesh
------------------------------------------------------------------------
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users