MALOC  0.1
vmp.h
Go to the documentation of this file.
1 
37 #ifndef _VMP_H_
38 #define _VMP_H_
39 
40 #include <maloc/maloc_base.h>
41 
42 #include <maloc/vsys.h>
43 #include <maloc/vmpi.h>
44 #include <maloc/vcom.h>
45 
46 /*
47  * ***************************************************************************
48  * Class Vmp: Parameters and datatypes
49  * ***************************************************************************
50  */
51 
58 struct sVmp {
59  int mpi_rank;
60  int mpi_size;
61 };
62 
68 typedef struct sVmp Vmp;
69 
70 /*
71  * ***************************************************************************
72  * Class Vmp: Inlineable methods (vmp.c)
73  * ***************************************************************************
74  */
75 
76 #if !defined(VINLINE_MALOC)
77 #else /* if defined(VINLINE_MALOC) */
78 #endif /* if !defined(VINLINE_MALOC) */
79 
80 
90 int Vmp_init(int *argc, char ***argv);
91 
99 int Vmp_finalize(void);
100 
108 Vmp* Vmp_ctor(void);
109 
118 void Vmp_dtor(Vmp **thee);
119 
128 int Vmp_rank(Vmp *thee);
129 
138 int Vmp_size(Vmp *thee);
139 
148 int Vmp_barr(Vmp *thee);
149 
161 int Vmp_send(Vmp *thee, int des, char *buf, int bufsize);
162 
174 int Vmp_recv(Vmp *thee, int src, char *buf, int bufsize);
175 
176 #endif /* _VMP_H_ */
177 
The base (or foundation) header for MALOC.
Class Vcom: virtual (currently just MPI) communications layer.
Class Vmpi: a Virtual MPI communication layer object.
The primary header for VSYS. (Virtual SYStem utilities library.)
int Vmp_finalize(void)
The Vmp finalizer.
int Vmp_send(Vmp *thee, int des, char *buf, int bufsize)
An MPI blocking send.
int Vmp_init(int *argc, char ***argv)
The Vmp initializer.
int Vmp_rank(Vmp *thee)
Return my processor ID.
int Vmp_recv(Vmp *thee, int src, char *buf, int bufsize)
An MPI blocking receive.
void Vmp_dtor(Vmp **thee)
The Vmp destructor.
int Vmp_barr(Vmp *thee)
An MPI barrier.
Vmp * Vmp_ctor(void)
The Vmp constructor.
int Vmp_size(Vmp *thee)
Return the number of processors involved.
Contains public data members for Vmp class.
Definition: vmp.h:58
int mpi_rank
Definition: vmp.h:59
int mpi_size
Definition: vmp.h:60