#include <MPISetup.hh>
Public Member Functions | |
MPISetup () | |
~MPISetup () | |
void | initialize (MPI_Comm borrowComm, MPI_Comm dupComm, neo::cca::AbstractFramework *naf) |
Create and add to the framework MPIService and MPIBorrow support services. | |
void | finalize (bool reclaim) |
Shutdown the previous mpi-related services. | |
Private Attributes | |
neo::cca::Services * | ms |
neo::cca::AbstractFramework * | naf |
neo::cca::ports::MPIService * | mpis |
neo::cca::ports::MPIBorrow * | mpib |
neo::cca::ports::ServiceRegistry * | sr |
bool | finalized |
Independent of Ccafe internals.
neo::support::MPISetup::MPISetup | ( | ) |
neo::support::MPISetup::~MPISetup | ( | ) |
void neo::support::MPISetup::initialize | ( | MPI_Comm | borrowComm, | |
MPI_Comm | dupComm, | |||
neo::cca::AbstractFramework * | naf | |||
) |
Create and add to the framework MPIService and MPIBorrow support services.
This will appear in the frame as an MPISetup component. MPI_Init must have been called before this is called.
borrowComm | the shared communicator for those using MPIBorrow. | |
dupComm | the communicator to duplicate for those using MPIService. | |
naf | The frame into which the services will be added. |
void neo::support::MPISetup::finalize | ( | bool | reclaim | ) |
Shutdown the previous mpi-related services.
reclaim | if reclaim true, try to release communicator resources allocated in MPIService support. Otherwise, lose them. |
neo::cca::Services* neo::support::MPISetup::ms [private] |
neo::cca::ports::MPIService* neo::support::MPISetup::mpis [private] |
neo::cca::ports::MPIBorrow* neo::support::MPISetup::mpib [private] |
bool neo::support::MPISetup::finalized [private] |