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