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

neo::support::MPISetup::MPISetup (  ) 

neo::support::MPISetup::~MPISetup (  ) 


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:
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.

Parameters:
reclaim if 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:

Generated on Mon Sep 14 18:33:39 2009 for NEOCCA bindings Specification by  doxygen 1.5.9