Skip to content

Commit 1e939fe

Browse files
jsquyreshppritcha
authored andcommitted
prte: code changes done by UofL capstone students and more
Add configure CLI option to allow optionally prefixing PRTE binary and library filenames. prted: support --with-prte-binary-prefix Add the prefix to the prted binary name that was passed in via --with-prte-binary-prefix. Add prefixing capability to prrte library and binaries Updated Makefile.am files to include @PRTE_BINARY_PREFIX@ in library and binary names where appropriate. Verified successful build and functionality of prefixed binaries This commit ensures compatiblity with prefixed binary naming while maintaining the integrity of the build system and runtime. Added and finalized ompi- prefix updates for PRRTE manpages. Added ompi- prefix for all instances of prte commands within both the man/man1 and man/man5 directories, and also renamed necessary files to accommodate changes. Updated and corrected ompi- prefix for prrte manpages Finalized changes to prrte manpages with -ompi prefix Changed configuration.rst file to fix warning that is being treated as an error Also fixed docs/Makefile.am for appropriate file renames Turned main function in prte.c into library function provided in libprrte.so manual addition of much of the content of UofL work in uofl-capstone-open-mpi#6 avoid defining PRTE_BINARY_PREFIX twice makefile fixes for prrte binary prefixing There were changes to PRRTE after UofL merged uofl-capstone-open-mpi#9 into their fork of prrte. These changes get it working again. modify some makefiles that UofL somehow missed Signed-off-by: Howard Pritchard <[email protected]>
1 parent cf4dc61 commit 1e939fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1707
-162
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ src/tools/pcc/pcc
166166
src/tools/pcc/pcc-wrapper-data.txt
167167
src/tools/pterm/pterm
168168
src/tools/pterm/prte-term
169+
src/tools/prun/ompi-prun
170+
src/tools/prte_info/ompi-prte_info
171+
src/tools/prted/ompi-prted
172+
src/tools/prte/ompi-prte
173+
src/tools/pterm/ompi-pterm
169174

170175
src/util/hostfile/hostfile_lex.c
171176
src/util/keyval/keyval_lex.c

config/prte_configure_options.m4

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dnl Copyright (c) 2016-2020 Intel, Inc. All rights reserved.
2121
dnl Copyright (c) 2021-2025 Nanook Consulting All rights reserved.
2222
dnl Copyright (c) 2022 Amazon.com, Inc. or its affiliates.
2323
dnl All Rights reserved.
24+
dnl Copyright (c) 2024 Jeffrey M. Squyres. All rights reserved.
2425
dnl $COPYRIGHT$
2526
dnl
2627
dnl Additional copyrights may follow
@@ -420,6 +421,27 @@ else
420421
fi
421422
AC_DEFINE_UNQUOTED([PRTE_TESTBUILD_LAUNCHERS], [$prte_testbuild_launchers],
422423
[Enable testbuild PLM launchers (default: disabled)])
424+
425+
# Optionally add a prefix to all the PRTE executable and library names
426+
AC_MSG_CHECKING([if want custom PRTE binary prefix])
427+
AC_ARG_WITH([prte-binary-prefix],
428+
[AS_HELP_STRING([--with-prte-binary-prefix=STRING],
429+
["Optionally add a prefix to all PRTE binary names (executables and libraries) names"])])
430+
# Set default prefix to "ompi-"
431+
AS_IF([test -z "$with_prte_binary_prefix"],
432+
[with_prte_binary_prefix=ompi-])
433+
434+
AS_IF([test "$with_prte_binary_prefix" = "no" || \
435+
test "$with_prte_binary_prefix" = "yes" || \
436+
test "$with_prte_binary_prefix" = ""],
437+
[PRTE_BINARY_PREFIX=],
438+
[PRTE_BINARY_PREFIX=$with_prte_binary_prefix])
439+
440+
AC_MSG_RESULT([$PRTE_BINARY_PREFIX])
441+
AC_SUBST(PRTE_BINARY_PREFIX)
442+
AC_DEFINE_UNQUOTED([PRTE_BINARY_PREFIX], ["$PRTE_BINARY_PREFIX"],
443+
[The prefix to use with PRTE binaries and libraries])
444+
423445
PRTE_SUMMARY_ADD([Miscellaneous], [Testbuild launchers], [], [$prte_testbuild_launchers_msg])
424446

425447
])dnl

contrib/libadd_mca_comp_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import glob, os, re, shutil
1010

11-
projects= { 'prte' : ["$(top_builddir)/src/libprrte.la"],
11+
projects= { 'prte' : ["$(top_builddir)/src/lib@PRTE_BINARY_PREFIX@prrte.la"],
1212
}
1313

1414
no_anchor_file = []

docs/Makefile.am

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ EXTRA_DIST = \
6363
# explicitly listed.
6464

6565
PRTE_MAN1 = \
66-
prte.1 \
67-
prte_info.1 \
68-
prted.1 \
69-
prterun.1 \
70-
prun.1 \
71-
pterm.1
66+
ompi-prte.1 \
67+
ompi-prte_info.1 \
68+
ompi-prted.1 \
69+
ompi-prterun.1 \
70+
ompi-prun.1 \
71+
ompi-pterm.1
7272

7373
PRTE_MAN5 = \
74-
prte.5
74+
ompi-prte.5
7575

7676
MAN_OUTDIR = $(OUTDIR)/man
7777

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ as a Distributed Virtual Machine (DVM) in two ways. First, the
66
``prte`` command can be executed at a shell prompt. This will discover
77
the available resources (either from hostfile or as allocated by a
88
resource manager) and start a PRRTE shepherd daemon (:ref:`prted(1)
9-
<man1-prted>`) on each of the indicated nodes.
9+
<man1-ompi-prted>`) on each of the indicated nodes.
1010

1111
The other method, however, is to bootstrap the DVM at time of cluster
1212
startup. Bootstrapping PRRTE allows the DVM to serve as the system-level

docs/man/man1/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Commands (section 1)
44
.. toctree::
55
:maxdepth: 1
66

7-
prte.1.rst
8-
prte_info.1.rst
9-
prted.1.rst
10-
prterun.1.rst
11-
prun.1.rst
12-
pterm.1.rst
7+
ompi-prte.1.rst
8+
ompi-prte_info.1.rst
9+
ompi-prted.1.rst
10+
ompi-prterun.1.rst
11+
ompi-prun.1.rst
12+
ompi-pterm.1.rst
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
.. _man1-prte:
1+
.. _man1-ompi-prte:
22

3-
prte
4-
====
3+
ompi-prte
4+
=========
55

6-
prte |mdash| instantiate an instance of PRRTE DVM
6+
ompi-prte |mdash| instantiate an instance of PRRTE DVM
77

88
SYNOPSIS
99
--------
1010

1111
.. code:: sh
1212
13-
shell$ prte ...options...
13+
shell$ ompi-prte ...options...
1414
1515
DESCRIPTION
1616
-----------
1717

18-
``prte`` instantiates an instance of the PMIx Reference Run Time
18+
``ompi-prte`` instantiates an instance of the PMIx Reference Run Time
1919
Environment (PRRTE) distributed virtual machine (DVM).
2020

2121
Extensive help documentation for this command is provided through
22-
``prte --help [topic]``.
22+
``ompi-prte --help [topic]``.
2323

2424
At least for now, that content is not available in man page form.
2525
Pull requests to add all the content (via repeatable infrastructure)
2626
would be greatly appreciated.
2727

2828
.. seealso::
29-
:ref:`prterun(1) <man1-prterun>`
29+
:ref:`ompi-prterun(1) <man1-ompi-prterun>`
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
.. _man1-prte_info:
1+
.. _man1-ompi-prte_info:
22

3-
prte_info
4-
=========
3+
ompi-prte_info
4+
==============
55

6-
prte_info |mdash| Provide detailed information on your PRRTE installation
6+
ompi-prte_info |mdash| Provide detailed information on your PRRTE installation
77

88
SYNOPSIS
99
--------
1010

1111
.. code:: sh
1212
13-
prte_info ...options...
13+
ompi-prte_info ...options...
1414
1515
DESCRIPTION
1616
-----------
1717

18-
``prte_info`` provide detailed information on your PMIx Reference Run
18+
``ompi-prte_info`` provide detailed information on your PMIx Reference Run
1919
Time (PRRTE) installation.
2020

2121
Extensive help documentation for this command is provided through
22-
``prte_info --help [topic]``.
22+
``ompi-prte_info --help [topic]``.
2323

2424
At least for now, that content is not available in man page form.
2525
Pull requests to add all the content (via repeatable infrastructure)
2626
would be greatly appreciated.
2727

2828
.. seealso::
29-
:ref:`prte(1) <man1-prte>`
29+
:ref:`ompi-prte(1) <man1-ompi-prte>`
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
.. _man1-prted:
1+
.. _man1-ompi-prted:
22

3-
prted
4-
=====
3+
ompi-prted
4+
==========
55

6-
prted |mdash| helper daemon for PRRTE
6+
ompi-prted |mdash| helper daemon for PRRTE
77

88
SYNOPSIS
99
--------
1010

1111
.. code:: sh
1212
13-
shell$ prted ...options...
13+
shell$ ompi-prted ...options...
1414
1515
DESCRIPTION
1616
-----------
1717

18-
``prted`` is the back end helper daemon for PMIx Reference Runtime
18+
``ompi-prted`` is the back end helper daemon for PMIx Reference Runtime
1919
Environment (PRRTE).
2020

2121
Extensive help documentation for this command is provided through
22-
``prted --help [topic]``.
22+
``ompi-prted --help [topic]``.
2323

2424
At least for now, that content is not available in man page form.
2525
Pull requests to add all the content (via repeatable infrastructure)
2626
would be greatly appreciated.
2727

2828
.. seealso::
29-
:ref:`prte(1) <man1-prte>`
29+
:ref:`ompi-prte(1) <man1-ompi-prte>`

docs/man/man1/prterun.1.rst renamed to docs/man/man1/ompi-prterun.1.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
.. _man1-prterun:
1+
.. _man1-ompi-prterun:
22

3-
prterun
4-
========
3+
ompi-prterun
4+
============
55

6-
prterun |mdash| launch an application with a default DVM
6+
ompi-prterun |mdash| launch an application with a default DVM
77

88
SYNOPSIS
99
--------
1010

1111
.. code:: sh
1212
13-
shell$ prterun ...options...
13+
shell$ ompi-prterun ...options...
1414
1515
DESCRIPTION
1616
-----------
1717

18-
``prterun`` submits a job to the PMIx Reference Runtime Environment
18+
``ompi-prterun`` submits a job to the PMIx Reference Runtime Environment
1919
(PRRTE). A default set of distributed virtual
20-
machine (DVM) options are used; use :ref:`prun(1) <man1-prun>` if you
20+
machine (DVM) options are used; use :ref:`ompi-prun(1) <man1-ompi-prun>` if you
2121
wish to utilize specific DVM options.
2222

2323
Much of this same help documentation for this command is also provided
24-
through ``prun --help [topic]``.
24+
through ``ompi-prun --help [topic]``.
2525

2626
.. admonition:: PRRTE Docs TODO
2727
:class: error
@@ -46,4 +46,4 @@ EXIT STATUS
4646
Description of the various exit statuses of this command.
4747

4848
.. seealso::
49-
:ref:`prte(1) <man1-prte>`
49+
:ref:`ompi-prte(1) <man1-ompi-prte>`

0 commit comments

Comments
 (0)