Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Reinitialize MPI_COMM_WORLD
From: Rajesh Sudarsan (rsudarsan_at_[hidden])
Date: 2007-11-29 12:13:03


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