File: conventions.rst.txt

package info (click to toggle)
openmpi 5.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 201,956 kB
  • sloc: ansic: 614,602; makefile: 42,354; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,192; python: 1,862; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (58 lines) | stat: -rw-r--r-- 2,662 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.. _building-ompi-cli-options-conventions-label:

``configure`` CLI option conventions
------------------------------------

``configure`` will, by default, search for header files and/or
libraries for various optional features (e.g., various HPC network
API/support libraries).  If the relevant files are found, Open MPI
will built support for that feature.  If they are not found, Open MPI
will skip building support for that feature.

However, if you specify ``--with-FOO`` (where ``FOO`` is the
corresponding CLI option name for the feature) on the ``configure``
command line and Open MPI is unable to find relevant support for
``FOO``, ``configure`` will assume that it was unable to provide a
feature that was specifically requested, and will therefore abort so
that a human can resolve out the issue.

.. note:: Using ``--with-FOO`` to force Open MPI's ``configure``
          script to abort it if can't find support for a given feature
          may be preferable to unexpectedly discovering at run-time
          that Open MPI is missing support for a critical feature.

Additionally, if a search directory is specified for ``FOO`` in the
form ``--with-FOO=DIR``, Open MPI will:

#. Search for ``FOO``'s header files in ``DIR/include``.
#. Search for ``FOO``'s library files:

   #. If ``--with-FOO-libdir=LIBDIR`` was specified, search in
      ``LIBDIR``.
   #. Otherwise, search in ``DIR/lib``, and if they are not found
      there, search again in ``DIR/lib64``.

#. If both the relevant header files and libraries are found:

   #. Open MPI will build support for ``FOO``.
   #. If the root path where the FOO libraries are found is neither
      ``/usr`` nor ``/usr/local``, Open MPI will compile itself with
      RPATH flags pointing to the directory where ``FOO``'s libraries
      are located.

      .. important:: Open MPI does not RPATH ``/usr/lib[64]`` and
                     ``/usr/local/lib[64]`` because many systems
                     already search these directories for run-time
                     libraries by default; adding RPATH for them could
                     have unintended consequences for the search path
                     ordering.

.. caution:: The ``--with-FOO-libdir=LIBDIR`` options are not usually
   needed; they are typically only needed when ``FOO``'s libraries are
   installed in an "unexpected" location.

   Also note the difference between ``--with-FOO=DIR`` and
   ``--with-FOO-libdir=LIBDIR``: the former is a directory to which
   suffixes such as ``/include`` and ``/lib`` are added, whereas the
   latter is assumed to be a full library directory name (e.g.,
   ``/opt/some_library/lib``).