Skip to content

Commit 820d9ac

Browse files
authored
Merge pull request #7447 from rhc54/topic/myen
Pickup change in check for deleted vs deprecated options and add deprecated ones
2 parents f9643b8 + 8d66045 commit 820d9ac

File tree

4 files changed

+69
-22
lines changed

4 files changed

+69
-22
lines changed

config/ompi_deleted_options.m4

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# -*- shell-script -*-
2+
#
3+
# Copyright (c) 2020 Intel, Inc. All rights reserved.
4+
# $COPYRIGHT$
5+
#
6+
# Additional copyrights may follow
7+
#
8+
# $HEADER$
9+
#
10+
11+
AC_DEFUN([OMPI_CHECK_DELETED_OPTIONS],[
12+
OPAL_VAR_SCOPE_PUSH([with_pmi_given with_pmi_libdir_given cxx])
13+
14+
# --with-pmi options were removed in v5.0
15+
AC_ARG_WITH([pmi],
16+
[AC_HELP_STRING([--with-pmi(=DIR)],
17+
[*DELETED* Build PMI support, optionally adding DIR to the search path (default: no)])],
18+
[with_pmi_given=yes])
19+
20+
AC_ARG_WITH([pmi-libdir],
21+
[AC_HELP_STRING([--with-pmi-libdir=DIR],
22+
[*DELETED* Look for libpmi or libpmi2 in the given directory DIR, DIR/lib or DIR/lib64])],
23+
[with_pmi_libdir_given=yes])
24+
25+
if test "$with_pmi_given" = "yes" || test "$with_pmi_libdir_given" = "yes"; then
26+
AC_MSG_WARN([Open MPI no longer supports PMI-1 or PMI-2 libraries.])
27+
AC_MSG_WARN([PMIx is now required. Either the internal version or an])
28+
AC_MSG_WARN([external version of PMIx may be used, so long as the])
29+
AC_MSG_WARN([external version is compatible with the PMIx v2.2])
30+
AC_MSG_WARN([Standard or higher. Note that cross-version support])
31+
AC_MSG_WARN([within the OpenPMIx library can be used by this OMPI])
32+
AC_MSG_WARN([to interact with environments based on other PMIx])
33+
AC_MSG_WARN([versions.])
34+
AC_MSG_ERROR([Build cannot continue.])
35+
fi
36+
37+
OPAL_VAR_SCOPE_POP
38+
])

config/ompi_deprecated_options.m4

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,25 @@
99
#
1010

1111
AC_DEFUN([OMPI_CHECK_DEPRECATED_OPTIONS],[
12-
OPAL_VAR_SCOPE_PUSH(with_pmi_given with_pmi_libdir_given)
12+
OPAL_VAR_SCOPE_PUSH([enable_orterun_prefix_given])
1313

14-
AC_ARG_WITH([pmi],
15-
[AC_HELP_STRING([--with-pmi(=DIR)],
16-
[*DEPRECATED* Build PMI support, optionally adding DIR to the search path (default: no)])],
17-
[with_pmi_given=yes])
14+
# --enable-orterun-prefix-by-default was deprecated in v5 in favor of --enable-prte-prefix-by-default
15+
AC_ARG_ENABLE([orterun-prefix-by-default],
16+
[AC_HELP_STRING([--enable-orterun-prefix-by-default],
17+
[*DEPRECATED* Please use --enable-prte-prefix-by-default in the future)])],
18+
[enable_orterun_prefix_given=yes])
19+
AC_ARG_ENABLE([mpirun-prefix-by-default],
20+
[AC_HELP_STRING([--enable-mpirun-prefix-by-default],
21+
[*DEPRECATED* Please use --enable-prte-prefix-by-default in the future])],
22+
[enable_orterun_prefix_given=yes])
1823

19-
AC_ARG_WITH([pmi-libdir],
20-
[AC_HELP_STRING([--with-pmi-libdir=DIR],
21-
[*DEPRECATED* Look for libpmi or libpmi2 in the given directory DIR, DIR/lib or DIR/lib64])],
22-
[with_pmi_libdir_given=yes])
23-
24-
if test "$with_pmi_given" = "yes" || test "$with_pmi_libdir_given" = "yes"; then
25-
AC_MSG_WARN([Open MPI no longer supports PMI-1 or PMI-2 libraries.])
26-
AC_MSG_WARN([PMIx is now required. Either the internal version or an])
27-
AC_MSG_WARN([external version of PMIx may be used, so long as the])
28-
AC_MSG_WARN([external version is compatible with the PMIx v2.2])
29-
AC_MSG_WARN([Standard or higher. Note that cross-version support])
30-
AC_MSG_WARN([within the OpenPMIx library can be used by this OMPI])
31-
AC_MSG_WARN([to interact with environments based on other PMIx])
32-
AC_MSG_WARN([versions.])
33-
AC_MSG_ERROR([Build cannot continue.])
24+
if test "$enable_orterun_prefix_given" = "yes"; then
25+
AC_MSG_WARN([Open MPI no longer uses the ORTE environment - it has been])
26+
AC_MSG_WARN([replaced by PRRTE. Accordingly, the "--enable-orterun-prefix-by-default"])
27+
AC_MSG_WARN([and "--enable-mpirun-prefix-by-default" options have been replaced])
28+
AC_MSG_WARN([by "--enable-prte-prefix-by-default". We will do the translation for])
29+
AC_MSG_WARN([you now, but these older options are deprecated and will be removed])
30+
AC_MSG_WARN([in a later release, so please update your build scripts.])
3431
fi
3532

3633
OPAL_VAR_SCOPE_POP

config/ompi_setup_prrte.m4

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
4242
[AC_HELP_STRING([--with-prrte-platform],
4343
[Platform file to use when building the internal PRRTE runtime support])])
4444

45+
AC_ARG_ENABLE([prte-prefix-by-default],
46+
[AC_HELP_STRING([--enable-prte-prefix-by-default],
47+
[Make "mpirun ..." behave exactly the same as "mpirun --prefix \$prefix" (where \$prefix is the value given to --prefix in configure) (default:enabled)])])
48+
4549
AC_MSG_CHECKING([if RTE support is enabled])
4650
if test "$enable_internal_rte" != "no"; then
4751
AC_MSG_RESULT([yes])
@@ -70,7 +74,14 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
7074
opal_prrte_pmix_arg="--with-pmix=$with_pmix"
7175
fi
7276

73-
opal_prrte_args="--prefix=$prefix --disable-dlopen $opal_prrte_libevent_arg $opal_prrte_hwloc_arg $opal_prrte_pmix_arg"
77+
if test -z $enable_prte_prefix_by_default || test "$enable_prte_prefix_by_default" = "yes" ||
78+
test "$enable_orterun_prefix_given" = "yes"; then
79+
opal_prrte_prefix_arg="--enable-prte-prefix-by-default"
80+
else
81+
opal_prrte_prefix_arg=
82+
fi
83+
84+
opal_prrte_args="--prefix=$prefix --disable-dlopen $opal_prrte_prefix_arg $opal_prrte_libevent_arg $opal_prrte_hwloc_arg $opal_prrte_pmix_arg"
7485
AS_IF([test "$enable_debug" = "yes"],
7586
[opal_prrte_args="--enable-debug $opal_prrte_args"
7687
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS -g"],

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
192192
AC_MSG_NOTICE([Detected VPATH build])
193193
fi
194194

195-
# Check for deprecated options
195+
# Check for deprecated/deleted options
196+
OMPI_CHECK_DELETED_OPTIONS
196197
OMPI_CHECK_DEPRECATED_OPTIONS
197198

198199
# Setup the top of the opal/include/opal_config.h file

0 commit comments

Comments
 (0)