vmp.h
Go to the documentation of this file.
#ifndef _VMP_H_
#define _VMP_H_
#include <maloc/maloc_base.h>
#include <maloc/vsys.h>
#include <maloc/vmpi.h>
#include <maloc/vcom.h>
/*
* ***************************************************************************
* Class Vmp: Parameters and datatypes
* ***************************************************************************
*/
struct sVmp {
int mpi_rank;
int mpi_size;
};
typedef struct sVmp Vmp;
/*
* ***************************************************************************
* Class Vmp: Inlineable methods (vmp.c)
* ***************************************************************************
*/
#if !defined(VINLINE_MALOC)
#else /* if defined(VINLINE_MALOC) */
#endif /* if !defined(VINLINE_MALOC) */
int Vmp_init(int *argc, char ***argv);
int Vmp_finalize(void);
Vmp* Vmp_ctor(void);
void Vmp_dtor(Vmp **thee);
int Vmp_rank(Vmp *thee);
int Vmp_size(Vmp *thee);
int Vmp_barr(Vmp *thee);
int Vmp_send(Vmp *thee, int des, char *buf, int bufsize);
int Vmp_recv(Vmp *thee, int src, char *buf, int bufsize);
#endif /* _VMP_H_ */
maloc_base.h
The base (or foundation) header for MALOC.
vcom.h
Class Vcom: virtual (currently just MPI) communications layer.
vmpi.h
Class Vmpi: a Virtual MPI communication layer object.
vsys.h
The primary header for VSYS. (Virtual SYStem utilities library.).
Vmp
struct sVmp Vmp
Declaration of the Vmp class as teh Vmp structure.
Definition vmp.h:68
Vmp_finalize
int Vmp_finalize(void)
The Vmp finalizer.
Vmp_send
int Vmp_send(Vmp *thee, int des, char *buf, int bufsize)
An MPI blocking send.
Vmp_init
int Vmp_init(int *argc, char ***argv)
The Vmp initializer.
Vmp_rank
int Vmp_rank(Vmp *thee)
Return my processor ID.
Vmp_recv
int Vmp_recv(Vmp *thee, int src, char *buf, int bufsize)
An MPI blocking receive.
Vmp_ctor
Vmp * Vmp_ctor(void)
The Vmp constructor.
Vmp_dtor
void Vmp_dtor(Vmp **thee)
The Vmp destructor.
Vmp_barr
int Vmp_barr(Vmp *thee)
An MPI barrier.
Vmp_size
int Vmp_size(Vmp *thee)
Return the number of processors involved.
sVmp
Contains public data members for Vmp class.
Definition vmp.h:58
sVmp::mpi_rank
int mpi_rank
Definition vmp.h:59
sVmp::mpi_size
int mpi_size
Definition vmp.h:60