Skip to content

Commit ad114be

Browse files
committed
configury: automatically select rte/pmix runtime if ORTE project is not built
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 69d136a commit ad114be

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

autogen.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# Copyright (c) 2013 Mellanox Technologies, Inc.
66
# All rights reserved.
77
# Copyright (c) 2013-2014 Intel, Inc. All rights reserved.
8-
# Copyright (c) 2015-2016 Research Organization for Information Science
9-
# and Technology (RIST). All rights reserved.
8+
# Copyright (c) 2015-2019 Research Organization for Information Science
9+
# and Technology (RIST). All rights reserved.
1010
# Copyright (c) 2015 IBM Corporation. All rights reserved.
1111
#
1212
# $COPYRIGHT$
@@ -1347,7 +1347,7 @@ sub in_tarball {
13471347
push(@{$projects}, { name => "ompi", dir => "ompi", need_base => 1 })
13481348
if (!$no_ompi_arg);
13491349
push(@{$projects}, { name => "oshmem", dir => "oshmem", need_base => 1 })
1350-
if (!$no_ompi_arg && !$no_orte_arg && !$no_oshmem_arg);
1350+
if (!$no_ompi_arg && !$no_oshmem_arg);
13511351
push(@{$projects}, { name => "orcm", dir => "orcm", need_base => 1 })
13521352
if (-e "orcm");
13531353

ompi/mca/rte/orte/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# All rights reserved.
44
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
55
# Copyright (c) 2016-2018 Intel, Inc. All rights reserved.
6+
# Copyright (c) 2019 Research Organization for Information Science
7+
# and Technology (RIST). All rights reserved.
68
# $COPYRIGHT$
79
#
810
# Additional copyrights may follow
@@ -31,6 +33,7 @@ libmca_rte_orte_la_LIBADD = $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la
3133
man_pages = mpirun.1 mpiexec.1 ompi-clean.1 ompi-server.1
3234

3335
if OPAL_INSTALL_BINARIES
36+
if PROJECT_ORTE
3437
nodist_man_MANS = $(man_pages)
3538

3639
install-exec-hook:
@@ -45,6 +48,7 @@ uninstall-local:
4548
$(DESTDIR)$(bindir)/ompi-clean$(EXEEXT) \
4649
$(DESTDIR)$(bindir)/ompi-server$(EXEEXT)
4750

51+
endif # PROJECT_ORTE
4852
endif # OPAL_INSTALL_BINARIES
4953

5054
$(top_builddir)/orte/tools/orterun/orterun.1:

ompi/mca/rte/orte/configure.m4

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#
33
# Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
44
# Copyright (c) 2013 Sandia National Laboratories. All rights reserved.
5-
#
65
# Copyright (c) 2017 Intel, Inc. All rights reserved.
6+
# Copyright (c) 2019 Research Organization for Information Science
7+
# and Technology (RIST). All rights reserved.
78
# $COPYRIGHT$
89
#
910
# Additional copyrights may follow
@@ -36,13 +37,16 @@ AC_DEFUN([MCA_ompi_rte_orte_POST_CONFIG],[
3637
AC_DEFUN([MCA_ompi_rte_orte_CONFIG],[
3738
AC_CONFIG_FILES([ompi/mca/rte/orte/Makefile])
3839

39-
# This will need to get more complicated when we can build against
40-
# an external ORTE.
41-
AC_ARG_WITH([orte],
42-
AC_HELP_STRING([--with-orte],
43-
[Use ORTE run-time environment (default: yes)]))
44-
AS_IF([test "$with_orte" != "no"],
45-
[$1],
46-
[AC_MSG_NOTICE([ORTE disabled by user])
47-
$2])
40+
m4_ifdef([project_orte],
41+
[# This will need to get more complicated when we can build against
42+
# an external ORTE.
43+
AC_ARG_WITH([orte],
44+
AC_HELP_STRING([--with-orte],
45+
[Use ORTE run-time environment (default: yes)]))
46+
AS_IF([test "$with_orte" != "no"],
47+
[$1],
48+
[AC_MSG_NOTICE([ORTE disabled by user])
49+
$2])
50+
],
51+
[$2])
4852
])

ompi/mca/rte/pmix/configure.m4

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
#
33
# Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
44
# Copyright (c) 2013 Sandia National Laboratories. All rights reserved.
5-
#
65
# Copyright (c) 2017 Intel, Inc. All rights reserved.
6+
# Copyright (c) 2019 Research Organization for Information Science
7+
# and Technology (RIST). All rights reserved.
78
# $COPYRIGHT$
89
#
910
# Additional copyrights may follow
@@ -35,11 +36,13 @@ AC_DEFUN([MCA_ompi_rte_pmix_POST_CONFIG],[
3536
AC_DEFUN([MCA_ompi_rte_pmix_CONFIG],[
3637
AC_CONFIG_FILES([ompi/mca/rte/pmix/Makefile])
3738

38-
AC_ARG_WITH([ompi-pmix-rte],
39-
AC_HELP_STRING([--with-ompi-pmix-rte],
40-
[Use PMIx as the OMPI run-time environment (default: no)]))
41-
AS_IF([test "$with_ompi_pmix_rte" == "yes"],
42-
[$1
43-
AC_MSG_NOTICE([PMIx RTE selected by user])],
44-
[$2])
39+
m4_ifdef([project_orte],
40+
[AC_ARG_WITH([ompi-pmix-rte],
41+
AC_HELP_STRING([--with-ompi-pmix-rte],
42+
[Use PMIx as the OMPI run-time environment (default: no)]))
43+
AS_IF([test "$with_ompi_pmix_rte" == "yes"],
44+
[$1
45+
AC_MSG_NOTICE([PMIx RTE selected by user])],
46+
[$2])],
47+
[$1])
4548
])

0 commit comments

Comments
 (0)