File: environment-var.rst

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (21 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Environment variables set for MPI applications
==============================================

Open MPI provides the following environment variables that will be
defined on every MPI process:

* ``OMPI_COMM_WORLD_SIZE``: the number of processes in this process's
  MPI_COMM_WORLD
* ``OMPI_COMM_WORLD_RANK``: the MPI rank of this process in
  MPI_COMM_WORLD
* ``OMPI_COMM_WORLD_LOCAL_SIZE``: the number of ranks from this job
  that are running on this node.
* ``OMPI_COMM_WORLD_LOCAL_RANK``: the relative rank of this process on
  this node within its job. For example, if four processes in a job
  share a node, they will each be given a local rank ranging from 0 to
  3.
* ``OMPI_UNIVERSE_SIZE``: the number of :ref:`process slots
  <running-scheduling-slots-label>` allocated to this job. Note that
  this may be different than the number of processes in the job.
* ``OMPI_COMM_WORLD_NODE_RANK``: the relative rank of this process on
  this node looking across *all* jobs.