Skip to content

Commit 8d66045

Browse files
committed
Deprecate the enable-orterun-prefix-by-default options
Mark the --enable-orterun-prefix-by-default and --enable-mpirun-prefix-by-default options as deprecated, but continue to honor them by translating them to the new --enable-prte-prefix-by-default option. Signed-off-by: Ralph Castain <[email protected]>
1 parent 3bfc7a7 commit 8d66045

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

config/ompi_deprecated_options.m4

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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_DEPRECATED_OPTIONS],[
12+
OPAL_VAR_SCOPE_PUSH([enable_orterun_prefix_given])
13+
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])
23+
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.])
31+
fi
32+
33+
OPAL_VAR_SCOPE_POP
34+
])

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ fi
194194

195195
# Check for deprecated/deleted options
196196
OMPI_CHECK_DELETED_OPTIONS
197+
OMPI_CHECK_DEPRECATED_OPTIONS
197198

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

0 commit comments

Comments
 (0)