vmpi.h
Go to the documentation of this file.
#ifndef _VMPI_H_
#define _VMPI_H_
#include <maloc/maloc_base.h>
#include <maloc/vsys.h>
/*
* ***************************************************************************
* Class Vmpi: Parameters and datatypes
* ***************************************************************************
*/
struct sVmpi {
int mpi_rank;
int mpi_size;
};
typedef struct sVmpi Vmpi;
/*
* ***************************************************************************
* Class Vmpi: Inlineable methods (vmpi.c)
* ***************************************************************************
*/
#if !defined(VINLINE_MALOC)
#else /* if defined(VINLINE_MALOC) */
#endif /* if !defined(VINLINE_MALOC) */
int Vmpi_init(int *argc, char ***argv);
int Vmpi_finalize(void);
Vmpi* Vmpi_ctor(void);
void Vmpi_dtor(Vmpi **thee);
int Vmpi_rank(Vmpi *thee);
int Vmpi_size(Vmpi *thee);
int Vmpi_barr(Vmpi *thee);
int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize);
int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize);
int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize);
int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize);
int Vmpi_isend(Vmpi *thee, int des, char *buf, int bufsize);
#endif /* _VMPI_H_ */
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