Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion outputs/stacks/examples/6.spack.stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ spack:
^lapack: '{name}/{name}-{version}-{^c.name}-{^c.version}-{^lapack.name}-{^lapack.version}'
'%c': '{name}/{name}-{version}-{^c.name}-{^c.version}'
'%cxx': '{name}/{name}-{version}-{^cxx.name}-{^cxx.version}'
'%c': '{name}/{name}-{version}-{^fortran.name}-{^fortran.version}'
'%fortran': '{name}/{name}-{version}-{^fortran.name}-{^fortran.version}'
all: '{name}/{name}-{version}'
2 changes: 1 addition & 1 deletion outputs/stacks/examples/7.spack.stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ spack:
^lapack: '{name}/{name}-{version}-{^c.name}-{^c.version}-{^lapack.name}-{^lapack.version}'
'%c': '{name}/{name}-{version}-{^c.name}-{^c.version}'
'%cxx': '{name}/{name}-{version}-{^cxx.name}-{^cxx.version}'
'%c': '{name}/{name}-{version}-{^fortran.name}-{^fortran.version}'
'%fortran': '{name}/{name}-{version}-{^fortran.name}-{^fortran.version}'
all: '{name}/{name}-{version}'
4 changes: 2 additions & 2 deletions tutorial_stacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Edit our ``spack.yaml`` file again.

.. literalinclude:: outputs/stacks/examples/6.spack.stack.yaml
:language: yaml
:emphasize-lines: 30-40
:emphasize-lines: 30-43

In the configuration above we created two views, named ``default`` and ``full``.
The ``default`` view consists of all the packages that are compiled with ``gcc@12``, but do not depend on either ``mpich`` or ``netlib-lapack``.
Expand Down Expand Up @@ -383,7 +383,7 @@ The next step is to add some basic configuration to our ``spack.yaml`` to genera

.. literalinclude:: outputs/stacks/examples/8.spack.stack.yaml
:language: yaml
:emphasize-lines: 31-40
:emphasize-lines: 31-42

In these few lines of additional configuration we told Spack to generate ``lmod`` module files in a subdirectory named ``modules``, using a hierarchy comprising both ``lapack`` and ``mpi``.
We've also configured it to place all specs built with our system compiler into the ``Core`` designation in the lmod hierarchy.
Expand Down