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

MPIMessageGrp Class Reference

The MPIMessageGrp class is an concrete implementation of MessageGrp that uses the MPI 1 library. More...

#include <messmpi.h>

Inheritance diagram for MPIMessageGrp::

MessageGrp DescribedClass RefCount Identity List of all members.

Public Methods

 MPIMessageGrp ()
 MPIMessageGrp (const Ref< KeyVal > &)
 ~MPIMessageGrp ()
void raw_send (int target, void *data, int nbyte)
void raw_recv (int sender, void *data, int nbyte)
void raw_sendt (int target, int type, void *data, int nbyte)
void raw_recvt (int type, void *data, int nbyte)
int probet (int type)
 Ask if a given typed message has been received.

int last_source ()
 Returns information about the last message received or probed.

int last_size ()
int last_type ()
void sync ()
 Synchronize all of the processors.

void reduce (double *, int n, GrpReduce< double > &, double *scratch=0, int target=-1)
 Global generic reduction. More...

void reduce (unsigned int *, int n, GrpReduce< unsigned int > &, unsigned int *scratch=0, int target=-1)
void reduce (int *, int n, GrpReduce< int > &, int *scratch=0, int target=-1)
void reduce (char *, int n, GrpReduce< char > &, char *scratch=0, int target=-1)
void reduce (unsigned char *, int n, GrpReduce< unsigned char > &, unsigned char *scratch=0, int target=-1)
void reduce (signed char *, int n, GrpReduce< signed char > &, signed char *scratch=0, int target=-1)
void reduce (short *, int n, GrpReduce< short > &, short *scratch=0, int target=-1)
void reduce (float *, int n, GrpReduce< float > &, float *scratch=0, int target=-1)
void reduce (long *, int n, GrpReduce< long > &, long *scratch=0, int target=-1)
void raw_bcast (void *data, int nbyte, int from)

Protected Methods

p4_cluster * my_node_info (const char[], int &)
void init (int argc=-1, char **argv=0)

Protected Attributes

void * buf
int bufsize
int rnode
int rtag
int rlen
int nlocal
int nremote
char * master
char * jobid
MPIMessageGrp::p4_cluster * remote_clusters

Detailed Description

The MPIMessageGrp class is an concrete implementation of MessageGrp that uses the MPI 1 library.


Member Function Documentation

void MPIMessageGrp::reduce double *   ,
int    n,
GrpReduce< double > &   ,
double *    scratch = 0,
int    target = -1
[virtual]
 

Global generic reduction.

Similar members exist for each of the basic types.

Reimplemented from MessageGrp.


The documentation for this class was generated from the following file:
Generated at Sat Mar 2 14:29:24 2002 for MPQC 2.0.4 using the documentation package Doxygen 1.2.11.1.