NEURON
nrnmpi.h
Go to the documentation of this file.
1 #ifndef nrnmpi_h
2 #define nrnmpi_h
3 #include "nrnmpiuse.h"
4 
5 /* by default nrnmpi_numprocs_world = nrnmpi_numprocs = nrnmpi_numsubworlds and
6  nrnmpi_myid_world = nrnmpi_myid and the bulletin board and network communication do
7  not easily coexist. ParallelContext.subworlds(nsmall) divides the world into
8  nrnmpi_numprocs_world/small subworlds of size nsmall.
9 */
10 extern int nrnmpi_numprocs_world; /* size of entire world. total size of all subworlds */
11 extern int nrnmpi_myid_world; /* rank in entire world */
12 extern int nrnmpi_numprocs; /* size of subworld */
13 extern int nrnmpi_myid; /* rank in subworld */
14 extern int nrnmpi_numprocs_bbs; /* number of subworlds */
15 extern int nrnmpi_myid_bbs; /* rank in nrn_bbs_comm of rank 0 of a subworld */
16 
17 typedef struct {
18  int gid;
19  double spiketime;
20 } NRNMPI_Spike;
21 
22 #if NRNMPI
23 
24 
25 extern int nrnmpi_use; /* NEURON does MPI init and terminate?*/
26 extern int nrn_cannot_use_threads_and_mpi; /* 0 if required <= provided from MPI_Init_thread */
27 
28 
29 #include "nrnmpidec.h"
30 
31 #endif /*NRNMPI*/
32 #endif /*nrnmpi_h*/
static int nrnmpi_use
Definition: multisplit.cpp:48
int nrnmpi_myid
int nrnmpi_numprocs_world
int nrnmpi_numprocs
int nrnmpi_myid_world
int nrnmpi_numprocs_bbs
int nrnmpi_myid_bbs
double spiketime
Definition: nrnmpi.h:19
int gid
Definition: nrnmpi.h:18