Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

sc::MTMPIMemoryGrp Class Reference

This MemoryGrp class requires a MT-safe MPI implementation. More...

#include <memmtmpi.h>

Inheritance diagram for sc::MTMPIMemoryGrp:

Inheritance graph
[legend]
Collaboration diagram for sc::MTMPIMemoryGrp:

Collaboration graph
[legend]
List of all members.

Public Methods

 MTMPIMemoryGrp (const Ref< MessageGrp > &msg, const Ref< ThreadGrp > &th, MPI_Comm comm=MPI_COMM_WORLD)
 Construct a MTMPIMemoryGrp given a MessageGrp, ThreadGrp, and an MPI communicator. More...

 MTMPIMemoryGrp (const Ref< KeyVal > &)
 Construct a MTMPIMemoryGrp given a KeyVal input object. More...

 ~MTMPIMemoryGrp ()
void activate ()
 Activate is called before the memory is to be used.

void deactivate ()
 Deactivate is called after the memory has been used.

void sync ()
 Synchronizes all the nodes. More...


Friends

class MTMPIThread

Detailed Description

This MemoryGrp class requires a MT-safe MPI implementation.

The default MessageGrp must be a MPIMessageGrp. MPI must be safe with respect to the default ThreadGrp. Alternately, a MessageGrp and a ThreadGrp can be passed to the constructor.


Constructor & Destructor Documentation

sc::MTMPIMemoryGrp::MTMPIMemoryGrp const Ref< MessageGrp > &    msg,
const Ref< ThreadGrp > &    th,
MPI_Comm    comm = MPI_COMM_WORLD
 

Construct a MTMPIMemoryGrp given a MessageGrp, ThreadGrp, and an MPI communicator.

The communicator can be a subset of MPI_COMM_WORLD, in which case, the MessageGrp must refer to the same subset.

sc::MTMPIMemoryGrp::MTMPIMemoryGrp const Ref< KeyVal > &   
 

Construct a MTMPIMemoryGrp given a KeyVal input object.

A fully thread safe MPI is needed (MPI_THREAD_MULTIPLE).


Member Function Documentation

void sc::MTMPIMemoryGrp::sync   [virtual]
 

Synchronizes all the nodes.

Consider using this when the way you you access memory changes.

Reimplemented from sc::MsgMemoryGrp.


The documentation for this class was generated from the following file:
Generated at Fri Jan 10 08:15:39 2003 for MPQC 2.1.3 using the documentation package Doxygen 1.2.14.