Skip to content

Commit 7506e84

Browse files
committed
mpirun.1.rst: fix MPI_COMM_WORLD font
Put MPI_COMM_WORLD in fixed-width font. Signed-off-by: Jeff Squyres <[email protected]>
1 parent e0ce402 commit 7506e84

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/man-openmpi/man1/mpirun.1.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ To map processes:
262262

263263
* ``--bynode``: Launch processes one per node, cycling by node in a
264264
round-robin fashion. This spreads processes evenly among nodes and
265-
assigns MPI_COMM_WORLD ranks in a round-robin, "by node" manner.
265+
assigns ``MPI_COMM_WORLD`` ranks in a round-robin, "by node" manner.
266266
(deprecated in favor of ``--map-by node``)
267267

268268
* ``--cpu-list <cpus>``: Comma-delimited list of processor IDs to
@@ -272,7 +272,7 @@ To map processes:
272272
.. note:: You can run Run the hwloc ``lstopo(1)`` command to see a
273273
list of available cores and their logical IDs.
274274

275-
To order processes' ranks in MPI_COMM_WORLD:
275+
To order processes' ranks in ``MPI_COMM_WORLD``:
276276

277277
* ``--rank-by <mode>``: Rank in round-robin fashion according to the
278278
specified mode, defaults to slot. Supported options include
@@ -311,15 +311,15 @@ To manage standard I/O:
311311
specified filename. Any directories in the filename will
312312
automatically be created. Each output file will consist of
313313
``filename.id``, where the ``id`` will be the processes' rank in
314-
MPI_COMM_WORLD, left-filled with zero's for correct ordering in
314+
``MPI_COMM_WORLD``, left-filled with zero's for correct ordering in
315315
listings. A relative path value will be converted to an absolute
316316
path based on the cwd where mpirun is executed. Note that this will
317317
not work on environments where the file system on compute nodes
318318
differs from that where :ref:`mpirun(1) <man1-mpirun>` is
319319
executed.
320320

321-
* ``--stdin <rank>``: The MPI_COMM_WORLD rank of the process that is
322-
to receive stdin. The default is to forward stdin to MPI_COMM_WORLD
321+
* ``--stdin <rank>``: The ``MPI_COMM_WORLD`` rank of the process that is
322+
to receive stdin. The default is to forward stdin to ``MPI_COMM_WORLD``
323323
rank 0, but this option can be used to forward stdin to any
324324
process. It is also acceptable to specify none, indicating that no
325325
processes are to receive stdin.
@@ -329,7 +329,7 @@ To manage standard I/O:
329329

330330
* ``--tag-output``: Tag each line of output to stdout, stderr, and
331331
stddiag with ``[jobid, MCW_rank]<stdxxx>`` indicating the process
332-
jobid and MPI_COMM_WORLD rank of the process that generated the
332+
jobid and ``MPI_COMM_WORLD`` rank of the process that generated the
333333
output, and the channel which generated it.
334334

335335
* ``--timestamp-output``: Timestamp each line of output to stdout,
@@ -342,7 +342,7 @@ To manage standard I/O:
342342
specified file.
343343

344344
* ``--xterm <ranks>``: Display the output from the processes
345-
identified by their MPI_COMM_WORLD ranks in separate xterm
345+
identified by their ``MPI_COMM_WORLD`` ranks in separate xterm
346346
windows. The ranks are specified as a comma-separated list of
347347
ranges, with a ``-1`` indicating all. A separate window will be created
348348
for each specified process.
@@ -716,7 +716,7 @@ options that describe mapping policies.
716716

717717
Consider the same hostfile as above, again with ``-n 6``. The table
718718
below lists a few ``mpirun`` variations, and shows which
719-
MPI_COMM_WORLD ranks end up on which node:
719+
``MPI_COMM_WORLD`` ranks end up on which node:
720720

721721
.. list-table::
722722
:header-rows: 1
@@ -832,7 +832,7 @@ Open MPI employs a three-phase procedure for assigning process locations
832832
and ranks:
833833

834834
#. **Mapping**: Assigns a default location to each process
835-
#. **Ranking**: Assigns an MPI_COMM_WORLD rank value to each process
835+
#. **Ranking**: Assigns an ``MPI_COMM_WORLD`` rank value to each process
836836
#. **Binding**: Constrains each process to run on specific processors
837837

838838
The mapping step is used to assign a default location to each process
@@ -864,7 +864,7 @@ gives you detailed control over process binding as well. Rankfiles
864864
are discussed :ref:`below <man1-mpirun-rankfiles>`.
865865

866866
The second phase focuses on the ranking of the process within the
867-
job's MPI_COMM_WORLD. Open MPI separates this from the mapping
867+
job's ``MPI_COMM_WORLD``. Open MPI separates this from the mapping
868868
procedure to allow more flexibility in the relative placement of MPI
869869
processes. This is best illustrated by considering the following
870870
cases where we used the ``--np 8 --map-by ppr:2:package --host aa:4,bb:4`` option:
@@ -1168,7 +1168,7 @@ Rankfiles are text files that specify detailed information about how
11681168
individual processes should be mapped to nodes, and to which
11691169
processor(s) they should be bound. Each line of a rankfile specifies
11701170
the location of one process (for MPI jobs, the process' "rank" refers
1171-
to its rank in MPI_COMM_WORLD). The general form of each line in the
1171+
to its rank in ``MPI_COMM_WORLD``). The general form of each line in the
11721172
rankfile is:
11731173

11741174
.. code::
@@ -1301,11 +1301,11 @@ Standard I/O
13011301
retained, or removed?
13021302

13031303
Open MPI directs UNIX standard input to ``/dev/null`` on all processes
1304-
except the MPI_COMM_WORLD rank 0 process. The MPI_COMM_WORLD rank 0
1304+
except the ``MPI_COMM_WORLD`` rank 0 process. The ``MPI_COMM_WORLD`` rank 0
13051305
process inherits standard input from ``mpirun``.
13061306

13071307
.. note:: The node that invoked ``mpirun`` need not be the same as the
1308-
node where the MPI_COMM_WORLD rank 0 process resides. Open
1308+
node where the ``MPI_COMM_WORLD`` rank 0 process resides. Open
13091309
MPI handles the redirection of ``mpirun``'s standard input
13101310
to the rank 0 process.
13111311

@@ -1322,7 +1322,7 @@ example:
13221322
13231323
shell$ mpirun -n 2 my_app < my_input > my_output
13241324
1325-
Note that in this example only the MPI_COMM_WORLD rank 0 process will
1325+
Note that in this example only the ``MPI_COMM_WORLD`` rank 0 process will
13261326
receive the stream from ``my_input`` on stdin. The stdin on all the other
13271327
nodes will be tied to ``/dev/null``. However, the stdout from all nodes
13281328
will be collected into the ``my_output`` file.
@@ -1645,15 +1645,15 @@ that job are designated "secondary" jobs):
16451645

16461646
* If one or more processes in the primary job normally terminate with
16471647
non-zero exit status, ``mpirun`` returns the exit status of the
1648-
process with the lowest MPI_COMM_WORLD rank to have a non-zero
1648+
process with the lowest ``MPI_COMM_WORLD`` rank to have a non-zero
16491649
status.
16501650

16511651
* If all processes in the primary job normally terminate with exit
16521652
status 0, and one or more processes in a secondary job normally
16531653
terminate with non-zero exit status, ``mpirun``:
16541654

16551655
#. Returns the exit status of the process with the lowest
1656-
MPI_COMM_WORLD rank in the lowest jobid to have a non-zero
1656+
``MPI_COMM_WORLD`` rank in the lowest jobid to have a non-zero
16571657
status, and
16581658
#. Outputs a message summarizing the exit status of the primary and
16591659
all secondary jobs.
@@ -1707,7 +1707,7 @@ processes exited before calling :ref:`MPI_FINALIZE(3) <mpi_finalize>`.
17071707
If an internal error occurred in mpirun, the corresponding error code
17081708
is returned. In the event that one or more processes exit before
17091709
calling :ref:`MPI_FINALIZE(3) <mpi_finalize>`, the return value of
1710-
the MPI_COMM_WORLD rank of the process that mpirun first notices died
1710+
the ``MPI_COMM_WORLD`` rank of the process that mpirun first notices died
17111711
before calling :ref:`MPI_FINALIZE(3) <mpi_finalize>` will be
17121712
returned. Note that, in general, this will be the first process that
17131713
died but is not guaranteed to be so.

0 commit comments

Comments
 (0)