NEOCCA bindings Specification  0.2.8
Public Member Functions | Private Attributes
neo::support::MPISetup Class Reference

Implementation that can be reused by driver writers. More...

#include <MPISetup.hh>

Collaboration diagram for neo::support::MPISetup:
Collaboration graph
[legend]

List of all members.

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::Servicesms
neo::cca::AbstractFrameworknaf
neo::cca::ports::MPIService * mpis
neo::cca::ports::MPIBorrow * mpib
neo::cca::ports::ServiceRegistrysr
bool finalized

Detailed Description

Implementation that can be reused by driver writers.

Independent of Ccafe internals.


Constructor & Destructor Documentation


Member Function Documentation

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.

Parameters:
borrowCommthe shared communicator for those using MPIBorrow.
dupCommthe communicator to duplicate for those using MPIService.
nafThe frame into which the services will be added.
void neo::support::MPISetup::finalize ( bool  reclaim)

Shutdown the previous mpi-related services.

Parameters:
reclaimif reclaim true, try to release communicator resources allocated in MPIService support. Otherwise, lose them.

Member Data Documentation

neo::cca::ports::MPIService* neo::support::MPISetup::mpis [private]
neo::cca::ports::MPIBorrow* neo::support::MPISetup::mpib [private]

The documentation for this class was generated from the following file: