Skip to content

Commit 3e32715

Browse files
committed
docs: some functions (currently) require mpirun
Add a note to several MPI API man pages that they (currently) require being launched via mpirun / mpiexec, and that launching in other environments may result in undefined behavior. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 69dc361 commit 3e32715

8 files changed

+21
-0
lines changed

docs/man-openmpi/man3/MPIRUN-ONLY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. admonition:: Important
2+
:class: error
3+
4+
In Open MPI, this function only works properly when the MPI job is
5+
launched via :ref:`man1-mpirun`. Using this function in other
6+
run-time environments is currently unsupported, and may result in
7+
undefined behavior (e.g., the MPI job may hang).

docs/man-openmpi/man3/MPI_Comm_accept.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ through a call to :ref:`MPI_Open_port` on the root.
7474
ERRORS
7575
------
7676

77+
.. include:: ./MPIRUN-ONLY.rst
78+
7779
.. include:: ./ERRORS.rst
7880

7981
.. seealso::

docs/man-openmpi/man3/MPI_Comm_connect.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ address of the server. It must be the same as the name returned by
8282
ERRORS
8383
------
8484

85+
.. include:: ./MPIRUN-ONLY.rst
86+
8587
.. include:: ./ERRORS.rst
8688

8789
.. seealso::

docs/man-openmpi/man3/MPI_Comm_create_from_group.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ shall have a value of at least 63.
9494
ERRORS
9595
------
9696

97+
.. include:: ./MPIRUN-ONLY.rst
98+
9799
.. include:: ./ERRORS.rst
98100

99101
.. seealso::

docs/man-openmpi/man3/MPI_Comm_join.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ mechanisms.
9191
ERRORS
9292
------
9393

94+
.. include:: ./MPIRUN-ONLY.rst
95+
9496
.. include:: ./ERRORS.rst
9597

9698
.. seealso::

docs/man-openmpi/man3/MPI_Comm_spawn.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ intercommunicator can be used immediately).
272272
ERRORS
273273
------
274274

275+
.. include:: ./MPIRUN-ONLY.rst
276+
275277
.. include:: ./ERRORS.rst
276278

277279
.. seealso::

docs/man-openmpi/man3/MPI_Comm_spawn_multiple.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ of calling :ref:`MPI_Comm_spawn` several times.
270270
ERRORS
271271
------
272272

273+
.. include:: ./MPIRUN-ONLY.rst
274+
273275
.. include:: ./ERRORS.rst
274276

275277
.. seealso::

docs/man-openmpi/man3/MPI_Intercomm_create_from_groups.3.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ shall have a value of at least 63.
9999
ERRORS
100100
------
101101

102+
.. include:: ./MPIRUN-ONLY.rst
103+
102104
.. include:: ./ERRORS.rst
103105

104106
.. seealso:: :ref:`MPI_Comm_create_from_group`

0 commit comments

Comments
 (0)