More fixes to make OMPI compile with minimal ORTE support again
This commit was SVN r23962.
Этот коммит содержится в:
родитель
4cb414e0cd
Коммит
3ed00ba148
@ -119,6 +119,7 @@ int ompi_mpi_finalize(void)
|
|||||||
*/
|
*/
|
||||||
(void)mca_pml_base_bsend_detach(NULL, NULL);
|
(void)mca_pml_base_bsend_detach(NULL, NULL);
|
||||||
|
|
||||||
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
||||||
/* If desired, send a notify message */
|
/* If desired, send a notify message */
|
||||||
if (ompi_notify_init_finalize) {
|
if (ompi_notify_init_finalize) {
|
||||||
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
||||||
@ -127,6 +128,7 @@ int ompi_mpi_finalize(void)
|
|||||||
orte_process_info.nodename,
|
orte_process_info.nodename,
|
||||||
orte_process_info.pid);
|
orte_process_info.pid);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Per MPI-2:4.8, we have to free MPI_COMM_SELF before doing
|
/* Per MPI-2:4.8, we have to free MPI_COMM_SELF before doing
|
||||||
anything else in MPI_FINALIZE (to include setting up such that
|
anything else in MPI_FINALIZE (to include setting up such that
|
||||||
@ -412,6 +414,7 @@ int ompi_mpi_finalize(void)
|
|||||||
free(ompi_mpi_show_mca_params_file);
|
free(ompi_mpi_show_mca_params_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
||||||
/* If desired, send a notify message */
|
/* If desired, send a notify message */
|
||||||
if (ompi_notify_init_finalize) {
|
if (ompi_notify_init_finalize) {
|
||||||
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
||||||
@ -420,6 +423,7 @@ int ompi_mpi_finalize(void)
|
|||||||
orte_process_info.nodename,
|
orte_process_info.nodename,
|
||||||
orte_process_info.pid);
|
orte_process_info.pid);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Leave the RTE */
|
/* Leave the RTE */
|
||||||
|
|
||||||
|
@ -407,6 +407,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
||||||
/* If desired, send a notify message */
|
/* If desired, send a notify message */
|
||||||
if (ompi_notify_init_finalize) {
|
if (ompi_notify_init_finalize) {
|
||||||
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
||||||
@ -415,6 +416,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
|||||||
orte_process_info.nodename,
|
orte_process_info.nodename,
|
||||||
orte_process_info.pid);
|
orte_process_info.pid);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* if it hasn't already been done, setup process affinity.
|
/* if it hasn't already been done, setup process affinity.
|
||||||
* First check to see if a slot list was
|
* First check to see if a slot list was
|
||||||
@ -967,6 +969,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
|||||||
(ompistop.tv_usec - ompistart.tv_usec)));
|
(ompistop.tv_usec - ompistart.tv_usec)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
||||||
/* If desired, send a notifier message that we've finished MPI_INIT */
|
/* If desired, send a notifier message that we've finished MPI_INIT */
|
||||||
if (ompi_notify_init_finalize) {
|
if (ompi_notify_init_finalize) {
|
||||||
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
orte_notifier.log(ORTE_NOTIFIER_NOTICE,
|
||||||
@ -975,6 +978,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
|||||||
orte_process_info.nodename,
|
orte_process_info.nodename,
|
||||||
orte_process_info.pid);
|
orte_process_info.pid);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return MPI_SUCCESS;
|
return MPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -207,6 +207,7 @@ void orte_errmgr_base_abort(int error_code, char *fmt, ...)
|
|||||||
}
|
}
|
||||||
va_end(arglist);
|
va_end(arglist);
|
||||||
|
|
||||||
|
#if !ORTE_DISABLE_FULL_SUPPORT
|
||||||
/* if I am a daemon or the HNP... */
|
/* if I am a daemon or the HNP... */
|
||||||
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
|
if (ORTE_PROC_IS_HNP || ORTE_PROC_IS_DAEMON) {
|
||||||
/* whack my local procs */
|
/* whack my local procs */
|
||||||
@ -217,6 +218,9 @@ void orte_errmgr_base_abort(int error_code, char *fmt, ...)
|
|||||||
/* cleanup my session directory */
|
/* cleanup my session directory */
|
||||||
orte_session_dir_finalize(ORTE_PROC_MY_NAME);
|
orte_session_dir_finalize(ORTE_PROC_MY_NAME);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
orte_session_dir_finalize(ORTE_PROC_MY_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* if a critical connection failed, exit without dropping a core */
|
/* if a critical connection failed, exit without dropping a core */
|
||||||
if (ORTE_ERR_CONNECTION_FAILED == OPAL_SOS_GET_ERROR_CODE(error_code)) {
|
if (ORTE_ERR_CONNECTION_FAILED == OPAL_SOS_GET_ERROR_CODE(error_code)) {
|
||||||
|
@ -40,8 +40,10 @@ endif
|
|||||||
mcacomponentdir = $(pkglibdir)
|
mcacomponentdir = $(pkglibdir)
|
||||||
mcacomponent_LTLIBRARIES = $(component_install)
|
mcacomponent_LTLIBRARIES = $(component_install)
|
||||||
mca_ess_portals4_shmem_la_SOURCES = $(sources)
|
mca_ess_portals4_shmem_la_SOURCES = $(sources)
|
||||||
mca_ess_portals4_shmem_la_LDFLAGS = -module -avoid-version
|
mca_ess_portals4_shmem_la_LIBADD = $(ess_portals4_shmem_LIBS)
|
||||||
|
mca_ess_portals4_shmem_la_LDFLAGS = -module -avoid-version $(ess_portals4_shmem_LDFLAGS)
|
||||||
|
|
||||||
noinst_LTLIBRARIES = $(component_noinst)
|
noinst_LTLIBRARIES = $(component_noinst)
|
||||||
libmca_ess_portals4_shmem_la_SOURCES =$(sources)
|
libmca_ess_portals4_shmem_la_SOURCES =$(sources)
|
||||||
libmca_ess_portals4_shmem_la_LDFLAGS = -module -avoid-version
|
libmca_ess_portals4_shmem_la_LIBADD = $(ess_portals4_shmem_LIBS)
|
||||||
|
libmca_ess_portals4_shmem_la_LDFLAGS = -module -avoid-version $(ess_portals4_shmem_LDFLAGS)
|
||||||
|
@ -29,6 +29,7 @@ int orte_ess_portals4_shmem_component_open(void);
|
|||||||
int orte_ess_portals4_shmem_component_close(void);
|
int orte_ess_portals4_shmem_component_close(void);
|
||||||
int orte_ess_portals4_shmem_component_query(mca_base_module_t **module, int *priority);
|
int orte_ess_portals4_shmem_component_query(mca_base_module_t **module, int *priority);
|
||||||
|
|
||||||
|
ORTE_MODULE_DECLSPEC extern orte_ess_base_component_t mca_ess_portals4_shmem_component;
|
||||||
|
|
||||||
END_C_DECLS
|
END_C_DECLS
|
||||||
|
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
#include "orte_config.h"
|
#include "orte_config.h"
|
||||||
#include "orte/constants.h"
|
#include "orte/constants.h"
|
||||||
|
|
||||||
|
#include <portals4.h>
|
||||||
|
#include <portals4_runtime.h>
|
||||||
|
|
||||||
#include "orte/mca/ess/ess.h"
|
#include "orte/mca/ess/ess.h"
|
||||||
#include "orte/mca/ess/portals4_shmem/ess_portals4_shmem.h"
|
#include "orte/mca/ess/portals4_shmem/ess_portals4_shmem.h"
|
||||||
|
|
||||||
@ -56,6 +59,8 @@ orte_ess_base_component_t mca_ess_portals4_shmem_component = {
|
|||||||
int
|
int
|
||||||
orte_ess_portals4_shmem_component_open(void)
|
orte_ess_portals4_shmem_component_open(void)
|
||||||
{
|
{
|
||||||
|
if (PTL_OK != PtlInit()) return ORTE_ERROR;
|
||||||
|
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,6 +82,7 @@ int orte_ess_portals4_shmem_component_query(mca_base_module_t **module, int *pri
|
|||||||
int
|
int
|
||||||
orte_ess_portals4_shmem_component_close(void)
|
orte_ess_portals4_shmem_component_close(void)
|
||||||
{
|
{
|
||||||
|
PtlFini();
|
||||||
return ORTE_SUCCESS;
|
return ORTE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,11 @@ int orte_grpcomm_base_open(void)
|
|||||||
orte_grpcomm_base.profile_fd = -1;
|
orte_grpcomm_base.profile_fd = -1;
|
||||||
|
|
||||||
/* define the default daemon collective fn */
|
/* define the default daemon collective fn */
|
||||||
|
#if ORTE_DISABLE_FULL_SUPPORT
|
||||||
|
orte_grpcomm_base.daemon_coll = NULL;
|
||||||
|
#else
|
||||||
orte_grpcomm_base.daemon_coll = orte_grpcomm_base_daemon_collective;
|
orte_grpcomm_base.daemon_coll = orte_grpcomm_base_daemon_collective;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Open up all available components */
|
/* Open up all available components */
|
||||||
|
|
||||||
|
@ -40,8 +40,12 @@ endif
|
|||||||
mcacomponentdir = $(pkglibdir)
|
mcacomponentdir = $(pkglibdir)
|
||||||
mcacomponent_LTLIBRARIES = $(component_install)
|
mcacomponent_LTLIBRARIES = $(component_install)
|
||||||
mca_grpcomm_portals4_shmem_la_SOURCES = $(sources)
|
mca_grpcomm_portals4_shmem_la_SOURCES = $(sources)
|
||||||
mca_grpcomm_portals4_shmem_la_LDFLAGS = -module -avoid-version
|
mca_grpcomm_portals4_shmem_la_LIBADD = $(grpcomm_portals4_shmem_LIBS)
|
||||||
|
mca_grpcomm_portals4_shmem_la_LDFLAGS = -module -avoid-version $(grpcomm_portals4_shmem_LDFLAGS)
|
||||||
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = $(component_noinst)
|
noinst_LTLIBRARIES = $(component_noinst)
|
||||||
libmca_grpcomm_portals4_shmem_la_SOURCES =$(sources)
|
libmca_grpcomm_portals4_shmem_la_SOURCES =$(sources)
|
||||||
libmca_grpcomm_portals4_shmem_la_LDFLAGS = -module -avoid-version
|
libmca_grpcomm_portals4_shmem_la_LIBADD = $(grpcomm_portals4_shmem_LIBS)
|
||||||
|
libmca_grpcomm_portals4_shmem_la_LDFLAGS = -module -avoid-version $(grpcomm_portals4_shmem_LDFLAGS)
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user