30 #ifndef OMPI_MPI_MPIRUNTIME_H
31 #define OMPI_MPI_MPIRUNTIME_H
33 #include "ompi_config.h"
66 #define OMPI_THREADLEVEL_SINGLE_BF 0x00000001
67 #define OMPI_THREADLEVEL_FUNNELED_BF 0x00000002
68 #define OMPI_THREADLEVEL_SERIALIZED_BF 0x00000004
69 #define OMPI_THREADLEVEL_MULTIPLE_BF 0x00000008
71 #define OMPI_THREADLEVEL_SET_BITFLAG(threadlevelin,threadlevelout) { \
72 if ( MPI_THREAD_SINGLE == threadlevelin ) { \
73 threadlevelout |= OMPI_THREADLEVEL_SINGLE_BF; \
74 } else if ( MPI_THREAD_FUNNELED == threadlevelin ) { \
75 threadlevelout |= OMPI_THREADLEVEL_FUNNELED_BF; \
76 } else if ( MPI_THREAD_SERIALIZED == threadlevelin ) { \
77 threadlevelout |= OMPI_THREADLEVEL_SERIALIZED_BF; \
78 } else if ( MPI_THREAD_MULTIPLE == threadlevelin ) { \
79 threadlevelout |= OMPI_THREADLEVEL_MULTIPLE_BF; \
83 #define OMPI_THREADLEVEL_IS_MULTIPLE(threadlevel) (threadlevel & OMPI_THREADLEVEL_MULTIPLE_BF)
105 OMPI_DECLSPEC
void ompi_warn_fork(
void);
125 int ompi_mpi_init(
int argc,
char **argv,
int requested,
int *provided);
142 int errcode,
bool kill_remote_of_intercomm);
opal_hash_table_t ompi_mpi_f90_integer_hashtable
In ompi_mpi_init: the lists of Fortran 90 mathing datatypes.
Definition: ompi_mpi_init.c:269
Definition: opal_hash_table.h:42
OMPI_DECLSPEC int ompi_mpi_thread_provided
Thread level provided by Open MPI.
Definition: ompi_mpi_init.c:128
OMPI_DECLSPEC bool ompi_mpi_finalized
Has mpi been finalized?
Definition: ompi_mpi_init.c:124
OMPI_DECLSPEC bool ompi_mpi_thread_multiple
Do we have multiple threads?
Definition: ompi_mpi_init.c:126
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
OMPI_DECLSPEC bool ompi_warn_on_fork
Do we want to be warned on fork or not?
Definition: ompi_mpi_init.c:134
OMPI_DECLSPEC bool ompi_mpi_init_started
Did mpi start to initialize?
Definition: ompi_mpi_init.c:122
int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
Initialize the Open MPI MPI environment.
Definition: ompi_mpi_init.c:283
int ompi_mpi_finalize(void)
Finalize the Open MPI MPI environment.
Definition: ompi_mpi_finalize.c:91
OMPI_DECLSPEC opal_list_t ompi_registered_datareps
In ompi_mpi_init: a list of all memory associated with calling MPI_REGISTER_DATAREP so that we can fr...
Definition: ompi_mpi_init.c:280
OMPI_DECLSPEC bool ompi_mpi_initialized
Is mpi initialized?
Definition: ompi_mpi_init.c:123
OMPI_DECLSPEC int ompi_mpi_abort(struct ompi_communicator_t *comm, int errcode, bool kill_remote_of_intercomm)
Abort the processes of comm.
Definition: ompi_mpi_abort.c:52
A hash table that may be indexed with either fixed length (e.g.
OMPI_DECLSPEC int ompi_mpi_thread_requested
Thread level requested to MPI_Init_thread()
Definition: ompi_mpi_init.c:127
OMPI_DECLSPEC const char ompi_version_string[]
version string of ompi
Definition: ompi_mpi_init.c:116
Definition: opal_list.h:147
int ompi_init_preconnect_mpi(void)
Do a preconnect of MPI connections (i.e., force connections to be made if they will be made)...
Definition: ompi_mpi_preconnect.c:28
OMPI_DECLSPEC struct opal_thread_t * ompi_mpi_main_thread
Identifier of the main thread.
Definition: ompi_mpi_init.c:130
Definition: communicator.h:118