MALOC  0.1
Files | Classes | Typedefs | Functions
Vmp class

A Virtual MPI communication layer object. More...

Files

file  vmp.h
 Class Vmp: a Virtual MPI communication layer object.
 

Classes

struct  sVmp
 Contains public data members for Vmp class. More...
 

Typedefs

typedef struct sVmp Vmp
 Declaration of the Vmp class as teh Vmp structure. More...
 

Functions

int Vmp_init (int *argc, char ***argv)
 The Vmp initializer. More...
 
int Vmp_finalize (void)
 The Vmp finalizer. More...
 
VmpVmp_ctor (void)
 The Vmp constructor. More...
 
void Vmp_dtor (Vmp **thee)
 The Vmp destructor. More...
 
int Vmp_rank (Vmp *thee)
 Return my processor ID. More...
 
int Vmp_size (Vmp *thee)
 Return the number of processors involved. More...
 
int Vmp_barr (Vmp *thee)
 An MPI barrier. More...
 
int Vmp_send (Vmp *thee, int des, char *buf, int bufsize)
 An MPI blocking send. More...
 
int Vmp_recv (Vmp *thee, int src, char *buf, int bufsize)
 An MPI blocking receive. More...
 

Detailed Description

A Virtual MPI communication layer object.

Typedef Documentation

typedef struct sVmp Vmp

Declaration of the Vmp class as teh Vmp structure.

Author
Michael Holst

Function Documentation

int Vmp_barr ( Vmp thee)

An MPI barrier.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
theePointer to the Vmp object
Vmp* Vmp_ctor ( void  )

The Vmp constructor.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
void Vmp_dtor ( Vmp **  thee)

The Vmp destructor.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
None
Parameters
theePointer to pointer of Vmp object
int Vmp_finalize ( void  )

The Vmp finalizer.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
int Vmp_init ( int *  argc,
char ***  argv 
)

The Vmp initializer.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
argcnumber of the command line arguments
argvthe command line arguments
int Vmp_rank ( Vmp thee)

Return my processor ID.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
theePointer to the Vmp object
int Vmp_recv ( Vmp thee,
int  src,
char *  buf,
int  bufsize 
)

An MPI blocking receive.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
theePointer to the Vmp object
srcrank of receiving processor
bufbuffer containing message
bufsizenumber of items (of declared type) in buffer
int Vmp_send ( Vmp thee,
int  des,
char *  buf,
int  bufsize 
)

An MPI blocking send.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
theePointer to the Vmp object
desrank of receiving processor
bufbuffer containing message
bufsizenumber of items (of declared type) in buffer
int Vmp_size ( Vmp thee)

Return the number of processors involved.

Author
Michael Holst
Note
Class Vmp: Non-inlineable method (vmp.c)
Returns
Success enumeration
Parameters
theePointer to the Vmp object