|
Boost Users : |
Subject: Re: [Boost-users] [mpi] what is the equivalent of MPI_COMM_SELF?
From: Matthias Troyer (troyer_at_[hidden])
Date: 2009-08-12 16:01:07
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net