Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Reinitialize MPI_COMM_WORLD
From: Edgar Gabriel (gabriel_at_[hidden])
Date: 2007-11-29 13:00:31


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
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users