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
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_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