Go to the documentation of this file.00001
00031 #ifndef _VMPI_H_
00032 #define _VMPI_H_
00033
00034 #include <maloc/maloc_base.h>
00035
00036 #include <maloc/vsys.h>
00037
00038
00039
00040
00041
00042
00043
00044
00047 typedef struct Vmpi {
00048 int mpi_rank;
00049 int mpi_size;
00050 } Vmpi;
00051
00052
00053
00054
00055
00056
00057
00058 #if !defined(VINLINE_MALOC)
00059 #else
00060 #endif
00061
00063 VEXTERNC int Vmpi_init(int *argc, char ***argv);
00065 VEXTERNC int Vmpi_finalize(void);
00066
00068 VEXTERNC Vmpi* Vmpi_ctor(void);
00070 VEXTERNC void Vmpi_dtor(Vmpi **thee);
00071
00073 VEXTERNC int Vmpi_rank(Vmpi *thee);
00075 VEXTERNC int Vmpi_size(Vmpi *thee);
00077 VEXTERNC int Vmpi_barr(Vmpi *thee);
00078
00080 VEXTERNC int Vmpi_send(Vmpi *thee, int des, char *buf, int bufsize);
00082 VEXTERNC int Vmpi_recv(Vmpi *thee, int src, char *buf, int bufsize);
00083
00085 VEXTERNC int Vmpi_bcast(Vmpi *thee, char *buf, int bufsize);
00087 VEXTERNC int Vmpi_reduce(Vmpi *thee, char *sbuf, char *rbuf, int bufsize);
00089 VEXTERNC int Vmpi_isend(Vmpi *thee, int des, char *buf, int bufsize);
00090
00091 #endif
00092