12 Aug
2009
12 Aug
'09
8:01 p.m.
On Aug 11, 2009, at 5:55 PM, alfC wrote:
Is there something equivalent to the constant MPI_COMM_SELF in Boost.MPI?
It is easy to refer the MPI_COMM_WORLD since this is the default constructor of boost::mpi::communicator, but it seems that the only way to have the equivalent of MPI_COMM_SELF is to do
boost::mpi::communicator self(MPI_COMM_SELF, boost::mpi::communicator::comm_attach);
does it make sense to define a global object with that name to refer to the communicator in current process? (this can be handy to switch to serial bahavior and parallel executrion when debugging the code, I guess).
Do you need this regularly? I have never seen any need for this before. Have you have a real need? Matthias