Add path to MPI executables to ^mpi dependents (#35758)
This commit is contained in:
parent
f895f80bc2
commit
c8026c3c87
@ -275,10 +275,12 @@ of the installed software. For instance, in the snippet below:
|
|||||||
set:
|
set:
|
||||||
BAR: 'bar'
|
BAR: 'bar'
|
||||||
# This anonymous spec selects any package that
|
# This anonymous spec selects any package that
|
||||||
# depends on openmpi. The double colon at the
|
# depends on mpi. The double colon at the
|
||||||
# end clears the set of rules that matched so far.
|
# end clears the set of rules that matched so far.
|
||||||
^openmpi::
|
^mpi::
|
||||||
environment:
|
environment:
|
||||||
|
prepend_path:
|
||||||
|
PATH: '{^mpi.prefix}/bin'
|
||||||
set:
|
set:
|
||||||
BAR: 'baz'
|
BAR: 'baz'
|
||||||
# Selects any zlib package
|
# Selects any zlib package
|
||||||
@ -293,7 +295,9 @@ of the installed software. For instance, in the snippet below:
|
|||||||
- FOOBAR
|
- FOOBAR
|
||||||
|
|
||||||
you are instructing Spack to set the environment variable ``BAR=bar`` for every module,
|
you are instructing Spack to set the environment variable ``BAR=bar`` for every module,
|
||||||
unless the associated spec satisfies ``^openmpi`` in which case ``BAR=baz``.
|
unless the associated spec satisfies the abstract dependency ``^mpi`` in which case
|
||||||
|
``BAR=baz``, and the directory containing the respective MPI executables is prepended
|
||||||
|
to the ``PATH`` variable.
|
||||||
In addition in any spec that satisfies ``zlib`` the value ``foo`` will be
|
In addition in any spec that satisfies ``zlib`` the value ``foo`` will be
|
||||||
prepended to ``LD_LIBRARY_PATH`` and in any spec that satisfies ``zlib%gcc@4.8``
|
prepended to ``LD_LIBRARY_PATH`` and in any spec that satisfies ``zlib%gcc@4.8``
|
||||||
the variable ``FOOBAR`` will be unset.
|
the variable ``FOOBAR`` will be unset.
|
||||||
|
Loading…
Reference in New Issue
Block a user