HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
mpivars_struct.h
Go to the documentation of this file.
1
6
#ifndef _MPIVARS_STRUCT_H_
7
#define _MPIVARS_STRUCT_H_
8
9
#ifndef serial
10
#include <mpi.h>
11
#endif
12
24
typedef
struct
mpi_variables {
25
int
rank
;
26
int
nproc
;
27
int
*
iproc
;
28
int
*
ip
;
29
int
*
is
,
30
*ie;
31
int
*
bcperiodic
;
33
#ifdef serial
34
int
world;
/* Dummy variable */
35
int
*comm;
/* Dummy variable */
36
#else
37
MPI_Comm
world
;
38
MPI_Comm *
comm
;
39
#endif
40
41
int
N_IORanks
;
42
int
IOParticipant
;
43
int
CommGroup
;
44
int
IORank
;
45
int
GroupStartRank
;
46
int
GroupEndRank
;
47
#ifndef serial
48
MPI_Comm
IOWorld
;
49
#endif
50
51
double
*
sendbuf
,
52
*recvbuf;
53
int
maxbuf
;
55
#if defined(HAVE_CUDA)
56
int
ncalls
;
57
double
wctime
;
58
double
wctime_total
;
59
int
*
cpu_dim
;
60
double
*
gpu_sendbuf
,
61
*gpu_recvbuf;
62
#endif
63
}
MPIVariables
;
64
65
#endif
MPIVariables::is
int * is
Definition:
mpivars_struct.h:29
MPIVariables::cpu_dim
int * cpu_dim
Definition:
mpivars_struct.h:59
MPIVariables::GroupStartRank
int GroupStartRank
Definition:
mpivars_struct.h:45
MPIVariables::ncalls
int ncalls
Definition:
mpivars_struct.h:56
MPIVariables::CommGroup
int CommGroup
Definition:
mpivars_struct.h:43
MPIVariables::maxbuf
int maxbuf
Definition:
mpivars_struct.h:53
MPIVariables::wctime_total
double wctime_total
Definition:
mpivars_struct.h:58
MPIVariables::nproc
int nproc
Definition:
mpivars_struct.h:26
MPIVariables::IOParticipant
int IOParticipant
Definition:
mpivars_struct.h:42
MPIVariables::sendbuf
double * sendbuf
Definition:
mpivars_struct.h:51
MPIVariables::N_IORanks
int N_IORanks
Definition:
mpivars_struct.h:41
MPIVariables::GroupEndRank
int GroupEndRank
Definition:
mpivars_struct.h:46
MPIVariables::rank
int rank
Definition:
mpivars_struct.h:25
MPIVariables::world
MPI_Comm world
Definition:
mpivars_struct.h:37
MPIVariables::comm
MPI_Comm * comm
Definition:
mpivars_struct.h:38
MPIVariables::iproc
int * iproc
Definition:
mpivars_struct.h:27
MPIVariables::IOWorld
MPI_Comm IOWorld
Definition:
mpivars_struct.h:48
MPIVariables::ip
int * ip
Definition:
mpivars_struct.h:28
MPIVariables
Structure of MPI-related variables.
Definition:
mpivars_struct.h:24
MPIVariables::gpu_sendbuf
double * gpu_sendbuf
Definition:
mpivars_struct.h:60
MPIVariables::IORank
int IORank
Definition:
mpivars_struct.h:44
MPIVariables::bcperiodic
int * bcperiodic
Definition:
mpivars_struct.h:31
MPIVariables::wctime
double wctime
Definition:
mpivars_struct.h:57