* Move the MPI runtime code from src/runtime to src/mpiruntime to make the
abstraction a little clearer. * Include mpiruntime.h instead of runtime.h in errhandler.h since only the MPI stuff was needed - speeds compile times greatly when working on the RTE... This commit was SVN r1948.
Этот коммит содержится в:
родитель
688f0cabda
Коммит
a27f749134
@ -854,6 +854,7 @@ AC_CONFIG_FILES([
|
|||||||
src/os/linux/ia64/Makefile
|
src/os/linux/ia64/Makefile
|
||||||
src/os/linux/x86_64/Makefile
|
src/os/linux/x86_64/Makefile
|
||||||
src/os/tru64/Makefile
|
src/os/tru64/Makefile
|
||||||
|
src/mpiruntime/Makefile
|
||||||
src/runtime/Makefile
|
src/runtime/Makefile
|
||||||
src/threads/Makefile
|
src/threads/Makefile
|
||||||
src/util/Makefile
|
src/util/Makefile
|
||||||
|
@ -19,6 +19,7 @@ SUBDIRS = \
|
|||||||
class \
|
class \
|
||||||
mca \
|
mca \
|
||||||
mpi \
|
mpi \
|
||||||
|
mpiruntime \
|
||||||
op \
|
op \
|
||||||
os \
|
os \
|
||||||
proc \
|
proc \
|
||||||
@ -45,6 +46,7 @@ libmpi_la_LIBADD = \
|
|||||||
class/liblfc.la \
|
class/liblfc.la \
|
||||||
mca/libmca.la \
|
mca/libmca.la \
|
||||||
mpi/libmpi_bindings.la \
|
mpi/libmpi_bindings.la \
|
||||||
|
mpiruntime/libmpiruntime.la \
|
||||||
op/libop.la \
|
op/libop.la \
|
||||||
proc/libproc.la \
|
proc/libproc.la \
|
||||||
request/librequest.la \
|
request/librequest.la \
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "mpi.h"
|
#include "mpi.h"
|
||||||
#include "class/ompi_object.h"
|
#include "class/ompi_object.h"
|
||||||
#include "class/ompi_pointer_array.h"
|
#include "class/ompi_pointer_array.h"
|
||||||
#include "runtime/runtime.h"
|
#include "mpiruntime/mpiruntime.h"
|
||||||
#include "errhandler/errhandler_predefined.h"
|
#include "errhandler/errhandler_predefined.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
29
src/mpiruntime/Makefile.am
Обычный файл
29
src/mpiruntime/Makefile.am
Обычный файл
@ -0,0 +1,29 @@
|
|||||||
|
# -*- makefile -*-
|
||||||
|
#
|
||||||
|
# $HEADER$
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(top_srcdir)/config/Makefile.options
|
||||||
|
|
||||||
|
AM_CPPFLAGS = -I$(top_builddir)/src/event
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = libmpiruntime.la
|
||||||
|
|
||||||
|
# Source code files
|
||||||
|
|
||||||
|
headers = \
|
||||||
|
mpiruntime.h
|
||||||
|
|
||||||
|
libmpiruntime_la_SOURCES = \
|
||||||
|
$(headers) \
|
||||||
|
ompi_mpi_init.c \
|
||||||
|
ompi_mpi_finalize.c
|
||||||
|
|
||||||
|
# Conditionally install the header files
|
||||||
|
|
||||||
|
if WANT_INSTALL_HEADERS
|
||||||
|
ompidir = $(includedir)/openmpi/mpiruntime
|
||||||
|
ompi_HEADERS = $(headers)
|
||||||
|
else
|
||||||
|
ompidir = $(includedir)
|
||||||
|
endif
|
55
src/mpiruntime/mpiruntime.h
Обычный файл
55
src/mpiruntime/mpiruntime.h
Обычный файл
@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* $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;
|
||||||
|
extern bool ompi_mpi_param_check;
|
||||||
|
|
||||||
|
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
|
||||||
|
* singletons). It should only be called after both \code
|
||||||
|
* ompi_init() and \code ompi_rte_init() have been called.
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
* during MPI_FINALIZE) and before \c ompi_rte_finalize().
|
||||||
|
*/
|
||||||
|
int ompi_mpi_finalize(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* OMPI_MPIRUNTIME_H */
|
@ -24,8 +24,6 @@ libruntime_la_SOURCES = \
|
|||||||
ompi_init.c \
|
ompi_init.c \
|
||||||
universe_connect.c \
|
universe_connect.c \
|
||||||
universe_init.c \
|
universe_init.c \
|
||||||
ompi_mpi_init.c \
|
|
||||||
ompi_mpi_finalize.c \
|
|
||||||
ompi_progress.c \
|
ompi_progress.c \
|
||||||
ompi_rte_finalize.c \
|
ompi_rte_finalize.c \
|
||||||
ompi_rte_init.c
|
ompi_rte_init.c
|
||||||
|
@ -13,19 +13,9 @@
|
|||||||
|
|
||||||
#include "ompi_config.h"
|
#include "ompi_config.h"
|
||||||
|
|
||||||
|
/* For backwards compatibility. If you only need MPI stuff, please include
|
||||||
/*
|
mpiruntime/mpiruntime.h directly */
|
||||||
* Global variables and symbols for the MPI layer
|
#include "mpiruntime/mpiruntime.h"
|
||||||
*/
|
|
||||||
|
|
||||||
extern bool ompi_mpi_initialized;
|
|
||||||
extern bool ompi_mpi_finalized;
|
|
||||||
extern bool ompi_mpi_param_check;
|
|
||||||
|
|
||||||
extern bool ompi_mpi_thread_multiple;
|
|
||||||
extern int ompi_mpi_thread_requested;
|
|
||||||
extern int ompi_mpi_thread_provided;
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -81,25 +71,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
int ompi_rte_finalize(void);
|
int ompi_rte_finalize(void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize the Open MPI MPI environment
|
|
||||||
*
|
|
||||||
* Intialize all support code needed for MPI applications. This
|
|
||||||
* function should only be called by MPI applications (including
|
|
||||||
* singletons). It should only be called after both \code
|
|
||||||
* ompi_init() and \code ompi_rte_init() have been called.
|
|
||||||
*/
|
|
||||||
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
|
|
||||||
* during MPI_FINALIZE) and before \c ompi_rte_finalize().
|
|
||||||
*/
|
|
||||||
int ompi_mpi_finalize(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user