add mpi to providers to remove virtual package error (#4608)
This commit is contained in:
parent
cd1322b2c9
commit
898c7f8838
1 changed files with 7 additions and 2 deletions
|
@ -1149,10 +1149,13 @@ Here's an example of an external configuration for cray modules:
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
mpi:
|
mpich:
|
||||||
modules:
|
modules:
|
||||||
mpich@7.3.1%gcc@5.2.0 arch=cray_xc-haswell-CNL10: cray-mpich
|
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
|
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
|
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
|
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
|
.. code-block:: yaml
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
mpi:
|
mpich:
|
||||||
modules:
|
modules:
|
||||||
mpich@7.3.1%gcc@5.2.0 arch=cray_xc-CNL10-ivybridge: cray-mpich
|
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
|
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
|
buildable: False
|
||||||
all:
|
all:
|
||||||
compiler: [gcc@5.2.0, intel@16.0.0.109]
|
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
|
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
|
if we want to build with intel compilers, use version 16.0.0.109. We add a spec
|
||||||
|
|
Loading…
Reference in a new issue