1 // Message Passing Interface mock header. Mocks MPI constants and functions, in
2 // order to make them available in distinct integration test files.
7 typedef int MPI_Datatype
;
9 typedef int MPI_Request
;
10 typedef int MPI_Status
;
16 namespace std
{ template<class T
> struct complex { T real
; T imag
; }; }
19 #define MPI_DATATYPE_NULL 0
24 #define MPI_LONG_DOUBLE 0
25 #define MPI_UNSIGNED 0
28 #define MPI_UINT16_T 0
29 #define MPI_C_LONG_DOUBLE_COMPLEX 0
32 #define MPI_CXX_BOOL 0
33 #define MPI_CXX_FLOAT_COMPLEX 0
34 #define MPI_CXX_DOUBLE_COMPLEX 0
35 #define MPI_CXX_LONG_DOUBLE_COMPLEX 0
36 #define MPI_IN_PLACE 0
37 #define MPI_COMM_WORLD 0
38 #define MPI_STATUS_IGNORE 0
39 #define MPI_STATUSES_IGNORE 0
43 int MPI_Comm_size(MPI_Comm
, int *);
44 int MPI_Comm_rank(MPI_Comm
, int *);
45 int MPI_Send(const void *, int, MPI_Datatype
, int, int, MPI_Comm
);
46 int MPI_Recv(void *, int, MPI_Datatype
, int, int, MPI_Comm
, MPI_Status
*);
47 int MPI_Isend(const void *, int, MPI_Datatype
, int, int, MPI_Comm
,
49 int MPI_Irecv(void *, int, MPI_Datatype
, int, int, MPI_Comm
, MPI_Request
*);
50 int MPI_Wait(MPI_Request
*, MPI_Status
*);
51 int MPI_Waitall(int, MPI_Request
[], MPI_Status
[]);
52 int MPI_Reduce(const void *, void *, int, MPI_Datatype
, MPI_Op
, int, MPI_Comm
);
53 int MPI_Ireduce(const void *, void *, int, MPI_Datatype
, MPI_Op
, int, MPI_Comm
,
55 int MPI_Bcast(void *, int count
, MPI_Datatype
, int, MPI_Comm
);