Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dummy_mpi.h
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_mpi_dummy_mpi_h
5 #define tools_mpi_dummy_mpi_h
6 
7 extern "C" {
8 
12 
13 typedef void* MPI_Comm;
14 typedef void* MPI_Datatype;
15 
16 #define MPI_UNSIGNED 0
17 #define MPI_DOUBLE 0
18 #define MPI_UNSIGNED_CHAR 0
19 #define MPI_CHAR 0
20 #define MPI_LONG 0
21 #define MPI_INT 0
22 #define MPI_UNSIGNED_LONG 0
23 #define MPI_LONG_LONG 0
24 #define MPI_UNSIGNED_LONG_LONG 0
25 
26 #define MPI_ANY_SOURCE 0
27 
28 #define MPI_SUCCESS 1
29 
30 #ifdef TOOLS_USE_MPI_PACK_NOT_CONST
31 inline int MPI_Pack(void*,int,MPI_Datatype,void*,int,int*,MPI_Comm){return 0;}
32 inline int MPI_Unpack(void*,int,int*,void*,int,MPI_Datatype,MPI_Comm){return 0;}
33 #else
34 inline int MPI_Pack(const void*,int,MPI_Datatype,void*,int,int*,MPI_Comm){return 0;}
35 inline int MPI_Unpack(const void*,int,int*,void*,int,MPI_Datatype,MPI_Comm){return 0;}
36 #endif
37 
41 
42 struct _MPI_Status {
44  int MPI_TAG;
45 };
47 
48 inline int MPI_Probe(int,int,MPI_Comm,MPI_Status*){return 0;}
49 inline int MPI_Get_count(const MPI_Status*,MPI_Datatype,int*){return 0;}
50 inline int MPI_Send(const void*,int,MPI_Datatype,int,int,MPI_Comm){return 0;}
51 inline int MPI_Recv(void*,int,MPI_Datatype,int,int,MPI_Comm,MPI_Status*){return 0;}
52 
56 
57 #define MPI_COMM_WORLD 0
58 #define MPI_MAX_PROCESSOR_NAME 100
59 
60 inline int MPI_Init(int*,char***){return 0;}
61 inline int MPI_Finalize(void){return 0;}
62 inline int MPI_Comm_size(MPI_Comm,int*){return 0;}
63 inline int MPI_Comm_rank(MPI_Comm,int*){return 0;}
64 inline int MPI_Get_processor_name(char*,int*){return 0;}
65 
66 }
67 
68 
69 #endif
int MPI_Unpack(const void *, int, int *, void *, int, MPI_Datatype, MPI_Comm)
Definition: dummy_mpi.h:35
to pass h2mpi, hs2mpi /////////////////////////////////////
Definition: dummy_mpi.h:42
int MPI_Comm_size(MPI_Comm, int *)
Definition: dummy_mpi.h:62
int MPI_Recv(void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *)
Definition: dummy_mpi.h:51
int MPI_TAG
Definition: dummy_mpi.h:44
int MPI_Get_count(const MPI_Status *, MPI_Datatype, int *)
Definition: dummy_mpi.h:49
int MPI_Pack(const void *, int, MPI_Datatype, void *, int, int *, MPI_Comm)
Definition: dummy_mpi.h:34
int MPI_Comm_rank(MPI_Comm, int *)
Definition: dummy_mpi.h:63
int MPI_Finalize(void)
Definition: dummy_mpi.h:61
int MPI_Init(int *, char ***)
Definition: dummy_mpi.h:60
int MPI_SOURCE
Definition: dummy_mpi.h:43
_MPI_Status MPI_Status
Definition: dummy_mpi.h:46
int MPI_Probe(int, int, MPI_Comm, MPI_Status *)
Definition: dummy_mpi.h:48
void * MPI_Comm
to pass hd2mpi ////////////////////////////////////////////
Definition: dummy_mpi.h:13
int MPI_Get_processor_name(char *, int *)
Definition: dummy_mpi.h:64
int MPI_Send(const void *, int, MPI_Datatype, int, int, MPI_Comm)
Definition: dummy_mpi.h:50
void * MPI_Datatype
Definition: dummy_mpi.h:14