Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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
7extern "C" {
8
9///////////////////////////////////////////////////////////////
10/// to pass hd2mpi ////////////////////////////////////////////
11///////////////////////////////////////////////////////////////
12
13typedef void* MPI_Comm;
14typedef void* MPI_Datatype;
15
16#define MPI_UNSIGNED 0
17#define MPI_FLOAT 0
18#define MPI_DOUBLE 0
19#define MPI_UNSIGNED_CHAR 0
20#define MPI_CHAR 0
21#define MPI_LONG 0
22#define MPI_SHORT 0
23#define MPI_INT 0
24#define MPI_UNSIGNED_LONG 0
25#define MPI_LONG_LONG 0
26#define MPI_UNSIGNED_LONG_LONG 0
27
28#define MPI_ANY_SOURCE 0
29
30#define MPI_SUCCESS 1
31
32#ifdef TOOLS_USE_MPI_PACK_NOT_CONST
33inline int MPI_Pack(void*,int,MPI_Datatype,void*,int,int*,MPI_Comm){return 0;}
34inline int MPI_Unpack(void*,int,int*,void*,int,MPI_Datatype,MPI_Comm){return 0;}
35#else
36inline int MPI_Pack(const void*,int,MPI_Datatype,void*,int,int*,MPI_Comm){return 0;}
37inline int MPI_Unpack(const void*,int,int*,void*,int,MPI_Datatype,MPI_Comm){return 0;}
38#endif
39
40///////////////////////////////////////////////////////////////
41/// to pass h2mpi, hs2mpi /////////////////////////////////////
42///////////////////////////////////////////////////////////////
43
47};
49
50inline int MPI_Probe(int,int,MPI_Comm,MPI_Status*){return 0;}
51inline int MPI_Get_count(const MPI_Status*,MPI_Datatype,int*){return 0;}
52inline int MPI_Send(const void*,int,MPI_Datatype,int,int,MPI_Comm){return 0;}
53inline int MPI_Recv(void*,int,MPI_Datatype,int,int,MPI_Comm,MPI_Status*){return 0;}
54
55///////////////////////////////////////////////////////////////
56/// to pass examples/cpp/mpi.cpp //////////////////////////////
57///////////////////////////////////////////////////////////////
58
59#define MPI_COMM_WORLD 0
60#define MPI_MAX_PROCESSOR_NAME 100
61
62inline int MPI_Init(int*,char***){return 0;}
63inline int MPI_Finalize(void){return 0;}
64inline int MPI_Comm_size(MPI_Comm,int*){return 0;}
65inline int MPI_Comm_rank(MPI_Comm,int*){return 0;}
66inline int MPI_Get_processor_name(char*,int*){return 0;}
67
68}
69
70
71#endif
int MPI_Get_count(const MPI_Status *, MPI_Datatype, int *)
Definition: dummy_mpi.h:51
int MPI_Comm_size(MPI_Comm, int *)
Definition: dummy_mpi.h:64
int MPI_Comm_rank(MPI_Comm, int *)
Definition: dummy_mpi.h:65
int MPI_Unpack(const void *, int, int *, void *, int, MPI_Datatype, MPI_Comm)
Definition: dummy_mpi.h:37
void * MPI_Comm
to pass hd2mpi ////////////////////////////////////////////
Definition: dummy_mpi.h:13
void * MPI_Datatype
Definition: dummy_mpi.h:14
int MPI_Get_processor_name(char *, int *)
Definition: dummy_mpi.h:66
int MPI_Pack(const void *, int, MPI_Datatype, void *, int, int *, MPI_Comm)
Definition: dummy_mpi.h:36
int MPI_Recv(void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *)
Definition: dummy_mpi.h:53
int MPI_Finalize(void)
Definition: dummy_mpi.h:63
int MPI_Send(const void *, int, MPI_Datatype, int, int, MPI_Comm)
Definition: dummy_mpi.h:52
int MPI_Probe(int, int, MPI_Comm, MPI_Status *)
Definition: dummy_mpi.h:50
int MPI_Init(int *, char ***)
Definition: dummy_mpi.h:62
_MPI_Status MPI_Status
Definition: dummy_mpi.h:48
to pass h2mpi, hs2mpi /////////////////////////////////////
Definition: dummy_mpi.h:44
int MPI_SOURCE
Definition: dummy_mpi.h:45
int MPI_TAG
Definition: dummy_mpi.h:46