MALOC 0.1
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.

Functions

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

Detailed Description

A Virtual MPI communication layer object.

Typedef Documentation

◆ Vmp

typedef struct sVmp Vmp

Declaration of the Vmp class as teh Vmp structure.

Author
Michael Holst

Function Documentation

◆ Vmp_barr()

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

References Vmp_barr().

Referenced by Vmp_barr().

Here is the call graph for this function:

◆ Vmp_ctor()

Vmp * Vmp_ctor ( void )

The Vmp constructor.

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

References Vmp_ctor().

Referenced by Vmp_ctor().

Here is the call graph for this function:

◆ Vmp_dtor()

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

References Vmp_dtor().

Referenced by Vmp_dtor().

Here is the call graph for this function:

◆ Vmp_finalize()

int Vmp_finalize ( void )

The Vmp finalizer.

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

References Vmp_finalize().

Referenced by Vmp_finalize().

Here is the call graph for this function:

◆ Vmp_init()

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

References Vmp_init().

Referenced by Vmp_init().

Here is the call graph for this function:

◆ Vmp_rank()

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

References Vmp_rank().

Referenced by Vmp_rank().

Here is the call graph for this function:

◆ Vmp_recv()

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

References Vmp_recv().

Referenced by Vmp_recv().

Here is the call graph for this function:

◆ Vmp_send()

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

References Vmp_send().

Referenced by Vmp_send().

Here is the call graph for this function:

◆ Vmp_size()

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

References Vmp_size().

Referenced by Vmp_size().

Here is the call graph for this function: