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
106 Vmpi* Vmpi_ctor(void);
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
maloc_base.h
The base (or foundation) header for MALOC.
vsys.h
The primary header for VSYS. (Virtual SYStem utilities library.)
Vmpi_init
int Vmpi_init(int *argc, char ***argv)
The Vmp initializer.
Vmpi_finalize
int Vmpi_finalize(void)
The Vmp finalizer.
Vmpi_size
int Vmpi_size(Vmpi *thee)
Return the number of processors involved.
Vmpi_reduce
int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize)
An MPI reduce.
Vmpi_recv
int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize)
An MPI blocking receive.
Vmpi_isend
int Vmpi_isend(Vmpi *thee, int des, char *buf, int bufsize)
An MPI non-blocking send.
Vmpi_dtor
void Vmpi_dtor(Vmpi **thee)
The Vmpi destructor.
Vmpi_send
int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize)
An MPI blocking send.
Vmpi_ctor
Vmpi * Vmpi_ctor(void)
The Vmpi constructor.
Vmpi_barr
int Vmpi_barr(Vmpi *thee)
An MPI barrier.
Vmpi_bcast
int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize)
An MPI broadcast.
Vmpi_rank
int Vmpi_rank(Vmpi *thee)
Return my processor ID.
sVmpi
Class Vmpi: Definition.
Definition vmpi.h:57
sVmpi::mpi_rank
int mpi_rank
Definition vmpi.h:58
sVmpi::mpi_size
int mpi_size
Definition vmpi.h:59