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 
178