Revert "Add extra libs to PRRTE binaries for external deps"
This reverts commit 1aabbe456d5de8fc3c3d6f91eabb8851db7d63eb. Update PMIx and PRRTE, plus PRRTE config integration Cleanup how we pass the extra libs and LDFLAGS for linking against external libevent, hwloc, and pmix installs. Catch the flag indicating that PMIx provided the user-level default MCA params so we don't go looking for them ourselves. Cleanup misc config warnings Signed-off-by: Ralph Castain <rhc@pmix.org>
Этот коммит содержится в:
родитель
92b58987d6
Коммит
50d05e7b64
@ -24,7 +24,7 @@
|
||||
#
|
||||
|
||||
AC_DEFUN([OMPI_SETUP_PRRTE],[
|
||||
OPAL_VAR_SCOPE_PUSH([opal_prrte_save_CPPFLAGS opal_prrte_save_CFLAGS opal_prrte_save_LDFLAGS opal_prrte_save_LIBS opal_prrte_args opal_prrte_save_enable_dlopen opal_prrte_save_enable_mca_dso opal_prrte_save_enable_mca_static opal_prrte_extra_libs opal_prrte_extra_ltlibs opal_prrte_extra_ldflags])
|
||||
OPAL_VAR_SCOPE_PUSH([opal_prrte_save_CPPFLAGS opal_prrte_save_CFLAGS opal_prrte_save_LDFLAGS opal_prrte_save_LIBS opal_prrte_args opal_prrte_save_enable_dlopen opal_prrte_save_enable_mca_dso opal_prrte_save_enable_mca_static])
|
||||
|
||||
opal_prrte_save_CFLAGS=$CFLAGS
|
||||
opal_prrte_save_CPPFLAGS=$CPPFLAGS
|
||||
@ -59,29 +59,29 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
|
||||
if test "$enable_internal_rte" != "no"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
ompi_want_prrte=yes
|
||||
opal_prrte_extra_libs=$OMPI_TOP_BUILDDIR/opal/libopen-pal.la
|
||||
opal_prrte_extra_ltlibs=$OMPI_TOP_BUILDDIR/opal/libopen-pal.la
|
||||
|
||||
if test "$opal_event_external_support" = "yes"; then
|
||||
opal_prrte_extra_libs="$opal_prrte_extra_libs $opal_event_external_LIBS"
|
||||
opal_prrte_extra_ltlibs="$opal_prrte_extra_ltlibs $opal_event_external_LIBS"
|
||||
if test -z $with_libevent || test "$with_libevent" = "internal" || test "$with_libevent" = "yes"; then
|
||||
opal_prrte_libevent_arg="--with-libevent-header=$OMPI_TOP_SRCDIR/opal/mca/event/event.h"
|
||||
elif test "$with_libevent" = "external"; then
|
||||
opal_prrte_libevent_arg=""
|
||||
else
|
||||
opal_prrte_libevent_arg="--with-libevent=$with_libevent"
|
||||
fi
|
||||
# specifying --with-libevent-header causes prrte to ignore the with_libevent and with_libevent_libdir options
|
||||
opal_prrte_libevent_arg="--with-libevent-header=$OMPI_TOP_SRCDIR/opal/mca/event/event.h"
|
||||
|
||||
if test "$opal_hwloc_external_support" = "yes"; then
|
||||
opal_prrte_extra_libs="$opal_prrte_extra_libs $opal_hwloc_external_LIBS"
|
||||
opal_prrte_extra_ltlibs="$opal_prrte_extra_ltlibs $opal_hwloc_external_LIBS"
|
||||
if test -z $with_hwloc || test "$with_hwloc" = "internal" || test "$with_hwloc" = "yes"; then
|
||||
opal_prrte_hwloc_arg="--with-hwloc-header=$OMPI_TOP_SRCDIR/opal/mca/hwloc/hwloc-internal.h"
|
||||
elif test "$with_hwloc" = "external"; then
|
||||
opal_prrte_hwloc_arg=""
|
||||
else
|
||||
opal_prrte_hwloc_arg="--with-hwloc=$with_hwloc"
|
||||
fi
|
||||
# specifying --with-hwloc-header causes prrte to ignore the with_hwloc and with_hwloc_libdir options
|
||||
opal_prrte_hwloc_arg="--with-hwloc-header=$OMPI_TOP_SRCDIR/opal/mca/hwloc/hwloc-internal.h"
|
||||
|
||||
if test "$opal_external_pmix_happy" = "yes"; then
|
||||
opal_prrte_extra_libs="$opal_prrte_extra_libs $opal_pmix_external_LIBS"
|
||||
opal_prrte_extra_ltlibs="$opal_prrte_extra_ltlibs $opal_pmix_external_LIBS"
|
||||
if test -z $with_pmix || test "$with_pmix" = "internal" || test "$with_pmix" = "yes"; then
|
||||
opal_prrte_pmix_arg="--with-pmix-header=$OMPI_TOP_SRCDIR/opal/mca/pmix/pmix-internal.h"
|
||||
elif test "$with_pmix" = "external"; then
|
||||
opal_prrte_pmix_arg=""
|
||||
else
|
||||
opal_prrte_pmix_arg="--with-pmix=$with_pmix"
|
||||
fi
|
||||
# specifying --with-pmix-header causes prrte to ignore the with_pmix and with_pmix_libdir options
|
||||
opal_prrte_pmix_arg="--with-pmix-header=$OMPI_TOP_SRCDIR/opal/mca/pmix/pmix-internal.h"
|
||||
|
||||
if test -z $enable_prte_prefix_by_default || test "$enable_prte_prefix_by_default" = "yes" ||
|
||||
test "$enable_orterun_prefix_given" = "yes"; then
|
||||
@ -102,7 +102,7 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
|
||||
opal_prrte_args="$opal_prrte_args --with-platform=$with_prrte_platform"
|
||||
fi
|
||||
# add the extra libs
|
||||
opal_prrte_args="$opal_prrte_args --with-prrte-extra-lib=\"$opal_prrte_extra_libs\" --with-prrte-extra-ltlib=\"$opal_prrte_extra_ltlibs\""
|
||||
opal_prrte_args="$opal_prrte_args --with-prrte-extra-lib=$OMPI_TOP_BUILDDIR/opal/libopen-pal.la --with-prrte-extra-ltlib=$OMPI_TOP_BUILDDIR/opal/libopen-pal.la"
|
||||
|
||||
AC_MSG_CHECKING([final prrte configure args])
|
||||
AC_MSG_RESULT([$opal_prrte_args])
|
||||
|
@ -13,7 +13,7 @@
|
||||
* Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved
|
||||
* Copyright (c) 2012-2018 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* Copyright (c) 2017 IBM Corporation. All rights reserved.
|
||||
@ -290,6 +290,13 @@ int mca_base_var_init(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* We may need this later */
|
||||
home = (char*)opal_home_directory();
|
||||
if (NULL == home) {
|
||||
opal_output(0, "Error: Unable to get the user home directory\n");
|
||||
return OPAL_ERROR;
|
||||
}
|
||||
|
||||
/* Set this before we register the parameter, below */
|
||||
|
||||
mca_base_var_initialized = true;
|
||||
@ -412,16 +419,11 @@ int mca_base_var_cache_files(bool rel_path_search)
|
||||
}
|
||||
|
||||
#if OPAL_WANT_HOME_CONFIG_FILES
|
||||
/* We may need this later */
|
||||
home = (char*)opal_home_directory();
|
||||
if (NULL == home) {
|
||||
opal_output(0, "Error: Unable to get the user home directory\n");
|
||||
return OPAL_ERROR;
|
||||
if (NULL == getenv("OPAL_USER_PARAMS_GIVEN")) {
|
||||
opal_asprintf(&mca_base_var_files, "%s"OPAL_PATH_SEP".openmpi" OPAL_PATH_SEP
|
||||
"mca-params.conf%c%s" OPAL_PATH_SEP "openmpi-mca-params.conf",
|
||||
home, ',', opal_install_dirs.sysconfdir);
|
||||
}
|
||||
|
||||
opal_asprintf(&mca_base_var_files, "%s"OPAL_PATH_SEP".openmpi" OPAL_PATH_SEP
|
||||
"mca-params.conf%c%s" OPAL_PATH_SEP "openmpi-mca-params.conf",
|
||||
home, ',', opal_install_dirs.sysconfdir);
|
||||
#else
|
||||
opal_asprintf(&mca_base_var_files, "%s" OPAL_PATH_SEP "openmpi-mca-params.conf",
|
||||
opal_install_dirs.sysconfdir);
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 8c565209c21f93d11e2156c0d53d73c3f6f9aaab
|
||||
Subproject commit 4b3893ebcc646b727a2a5bc82ec37ddce55132ec
|
2
prrte
2
prrte
@ -1 +1 @@
|
||||
Subproject commit d879d5669379ffbe093d60b76b46cc9b2aae20e1
|
||||
Subproject commit 7c5b6d935d6e4c8e0b8fc1a5558b965a4b11d610
|
Загрузка…
x
Ссылка в новой задаче
Block a user