diff options
author | EmreAtes <ates@bu.edu> | 2017-06-28 19:24:29 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-06-28 12:24:29 -0500 |
commit | 898c7f8838bc78b8d9679dfd9ff32eb575766e91 (patch) | |
tree | c63798c6704bbd487387692c431343d86b19b6e9 /lib | |
parent | cd1322b2c96f141a68180b052a63df9b3d756cd0 (diff) | |
download | spack-898c7f8838bc78b8d9679dfd9ff32eb575766e91.tar.gz spack-898c7f8838bc78b8d9679dfd9ff32eb575766e91.tar.bz2 spack-898c7f8838bc78b8d9679dfd9ff32eb575766e91.tar.xz spack-898c7f8838bc78b8d9679dfd9ff32eb575766e91.zip |
add mpi to providers to remove virtual package error (#4608)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/docs/getting_started.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst index eaa92db694..ef0f25cb04 100644 --- a/lib/spack/docs/getting_started.rst +++ b/lib/spack/docs/getting_started.rst @@ -1149,10 +1149,13 @@ Here's an example of an external configuration for cray modules: .. code-block:: yaml packages: - mpi: + mpich: modules: mpich@7.3.1%gcc@5.2.0 arch=cray_xc-haswell-CNL10: cray-mpich mpich@7.3.1%intel@16.0.0.109 arch=cray_xc-haswell-CNL10: cray-mpich + all: + providers: + mpi: [mpich] This tells Spack that for whatever package that depends on mpi, load the cray-mpich module into the environment. You can then be able to use whatever @@ -1169,7 +1172,7 @@ Here is an example of a full packages.yaml used at NERSC .. code-block:: yaml packages: - mpi: + mpich: modules: mpich@7.3.1%gcc@5.2.0 arch=cray_xc-CNL10-ivybridge: cray-mpich mpich@7.3.1%intel@16.0.0.109 arch=cray_xc-SuSE11-ivybridge: cray-mpich @@ -1186,6 +1189,8 @@ Here is an example of a full packages.yaml used at NERSC buildable: False all: compiler: [gcc@5.2.0, intel@16.0.0.109] + providers: + mpi: [mpich] Here we tell spack that whenever we want to build with gcc use version 5.2.0 or if we want to build with intel compilers, use version 16.0.0.109. We add a spec |