2004-08-07 04:53:56 +04:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*
|
|
|
|
* Interface into the MPI portion of the Open MPI Run Time Environment
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OMPI_MPIRUNTIME_H
|
|
|
|
#define OMPI_MPIRUNTIME_H
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Global variables and symbols for the MPI layer
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern bool ompi_mpi_initialized;
|
|
|
|
extern bool ompi_mpi_finalized;
|
2004-08-12 20:56:24 +04:00
|
|
|
|
2004-08-07 04:53:56 +04:00
|
|
|
extern bool ompi_mpi_param_check;
|
2004-08-12 20:56:24 +04:00
|
|
|
extern bool ompi_debug_show_handle_leaks;
|
|
|
|
extern bool ompi_debug_handle_never_free;
|
2004-08-07 04:53:56 +04:00
|
|
|
|
|
|
|
extern bool ompi_mpi_thread_multiple;
|
|
|
|
extern int ompi_mpi_thread_requested;
|
|
|
|
extern int ompi_mpi_thread_provided;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize the Open MPI MPI environment
|
|
|
|
*
|
|
|
|
* Intialize all support code needed for MPI applications. This
|
|
|
|
* function should only be called by MPI applications (including
|
2004-08-07 20:07:09 +04:00
|
|
|
* singletons). If this function is called, ompi_init and
|
|
|
|
* ompi_rte_init should *not* be called.
|
2004-08-07 04:53:56 +04:00
|
|
|
*/
|
|
|
|
int ompi_mpi_init(int argc, char **argv, int requested, int *provided);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Finalize the Open MPI MPI environment
|
|
|
|
*
|
|
|
|
* Should be called after all MPI functionality is complete (usually
|
2004-08-07 20:07:09 +04:00
|
|
|
* during MPI_FINALIZE).
|
2004-08-07 04:53:56 +04:00
|
|
|
*/
|
|
|
|
int ompi_mpi_finalize(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* OMPI_MPIRUNTIME_H */
|