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
57struct sVmpi {
60};
61
67typedef 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
88int Vmpi_init(int *argc, char ***argv);
89
97int Vmpi_finalize(void);
98
107
116void Vmpi_dtor(Vmpi **thee);
117
126int Vmpi_rank(Vmpi *thee);
127
136int Vmpi_size(Vmpi *thee);
137
146int Vmpi_barr(Vmpi *thee);
147
159int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize);
160
172int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize);
173
184int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize);
185
197int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize);
198
210int 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.
int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize)
An MPI blocking send.
Vmpi * Vmpi_ctor(void)
The Vmpi constructor.
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