MALOC  0.1
vmpi.h
Go to the documentation of this file.
1 
38 #ifndef _VMPI_H_
39 #define _VMPI_H_
40 
41 #include <maloc/maloc_base.h>
42 
43 #include <maloc/vsys.h>
44 
45 /*
46  * ***************************************************************************
47  * Class Vmpi: Parameters and datatypes
48  * ***************************************************************************
49  */
50 
51 
57 struct sVmpi {
58  int mpi_rank;
59  int mpi_size;
60 };
61 
67 typedef struct sVmpi Vmpi;
68 
69 /*
70  * ***************************************************************************
71  * Class Vmpi: Inlineable methods (vmpi.c)
72  * ***************************************************************************
73  */
74 
75 #if !defined(VINLINE_MALOC)
76 #else /* if defined(VINLINE_MALOC) */
77 #endif /* if !defined(VINLINE_MALOC) */
78 
88 int Vmpi_init(int *argc, char ***argv);
89 
97 int Vmpi_finalize(void);
98 
107 
116 void Vmpi_dtor(Vmpi **thee);
117 
126 int Vmpi_rank(Vmpi *thee);
127 
136 int Vmpi_size(Vmpi *thee);
137 
146 int Vmpi_barr(Vmpi *thee);
147 
159 int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize);
160 
172 int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize);
173 
184 int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize);
185 
197 int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize);
198 
210 int Vmpi_isend(Vmpi *thee, int des, char *buf, int bufsize);
211 
212 #endif /* _VMPI_H_ */
213 
The base (or foundation) header for MALOC.
The primary header for VSYS. (Virtual SYStem utilities library.)
int Vmpi_init(int *argc, char ***argv)
The Vmp initializer.
int Vmpi_finalize(void)
The Vmp finalizer.
int Vmpi_size(Vmpi *thee)
Return the number of processors involved.
int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize)
An MPI reduce.
int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize)
An MPI blocking receive.
int Vmpi_isend(Vmpi *thee, int des, char *buf, int bufsize)
An MPI non-blocking send.
void Vmpi_dtor(Vmpi **thee)
The Vmpi destructor.
Vmpi * Vmpi_ctor(void)
The Vmpi constructor.
int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize)
An MPI blocking send.
int Vmpi_barr(Vmpi *thee)
An MPI barrier.
int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize)
An MPI broadcast.
int Vmpi_rank(Vmpi *thee)
Return my processor ID.
Class Vmpi: Definition.
Definition: vmpi.h:57
int mpi_rank
Definition: vmpi.h:58
int mpi_size
Definition: vmpi.h:59