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
58struct sVmp {
61};
62
68typedef 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
90int Vmp_init(int *argc, char ***argv);
91
99int Vmp_finalize(void);
100
109
118void Vmp_dtor(Vmp **thee);
119
128int Vmp_rank(Vmp *thee);
129
138int Vmp_size(Vmp *thee);
139
148int Vmp_barr(Vmp *thee);
149
161int Vmp_send(Vmp *thee, int des, char *buf, int bufsize);
162
174int Vmp_recv(Vmp *thee, int src, char *buf, int bufsize);
175
176#endif /* _VMP_H_ */
177
The base (or foundation) header for MALOC.
Class Vmpi: a Virtual MPI communication layer object.
Class Vcom: virtual (currently just MPI) communications layer.
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.
Vmp * Vmp_ctor(void)
The Vmp constructor.
void Vmp_dtor(Vmp **thee)
The Vmp destructor.
int Vmp_barr(Vmp *thee)
An MPI barrier.
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