Skip to content

Commit

Permalink
stacks tutorial updates (#107)
Browse files Browse the repository at this point in the history
* Update example outputs (now using Spack v0.16.1)
* Update wording in intro based on reordering of tutorial sections
  • Loading branch information
becker33 committed Apr 15, 2021
1 parent 12316e4 commit b4488ce
Show file tree
Hide file tree
Showing 11 changed files with 1,386 additions and 955 deletions.
1 change: 1 addition & 0 deletions outputs/init_spack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fi

. share/spack/setup-env.sh

pip install boto3
spack mirror add tutorial /mirror
spack buildcache keys --install --trust
spack config add 'config:suppress_gpg_warnings:true'
Expand Down
9 changes: 9 additions & 0 deletions outputs/stacks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ project=$(dirname "$0")

rm -rf $raw_outputs/stacks
. $project/init_spack.sh
. share/spack/setup-env.sh

spack install zlib%clang
spack install trilinos^mpich
spack install openmpi

mkdir -p ~/code
example stacks/setup-0 "cd ~/code"
cd ~/code

cat $project/stacks/examples/0.spack.yaml.example > spack.yaml
example stacks/setup-0 "spack env activate ."
spack env activate .

fake_example stacks/setup-0 "spack config edit" "/bin/true"

example stacks/concretize-0 "spack concretize"
example stacks/concretize-0 "spack find -c"

Expand Down
161 changes: 86 additions & 75 deletions outputs/stacks/concretize-0.out

Large diffs are not rendered by default.

338 changes: 189 additions & 149 deletions outputs/stacks/concretize-1.out

Large diffs are not rendered by default.

253 changes: 140 additions & 113 deletions outputs/stacks/concretize-2.out

Large diffs are not rendered by default.

277 changes: 152 additions & 125 deletions outputs/stacks/concretize-3.out

Large diffs are not rendered by default.

481 changes: 265 additions & 216 deletions outputs/stacks/concretize-4.out

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions outputs/stacks/setup-0.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$ cd ~/code
$ spack env activate .
$ spack config edit
490 changes: 326 additions & 164 deletions outputs/stacks/view-0.out

Large diffs are not rendered by default.

321 changes: 209 additions & 112 deletions outputs/stacks/view-1.out

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion tutorial_stacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ In a typical Spack environment for a single user, a simple list of
specs is sufficient. For software deployment, however, we often have a
set of packages we want to install across a wide range of
compilers. The simplest way to express this in Spack is through a
matrix. Let's edit our ``spack.yaml`` file again.
matrix. Let's go back to our code directory from the environments
tutorial, activate our environment, and edit our ``spack.yaml`` file
again.

.. literalinclude:: outputs/stacks/setup-0.out
:language: console

.. literalinclude:: outputs/stacks/examples/0.spack.yaml.example
:language: yaml
Expand Down

0 comments on commit b4488ce

Please sign in to comment.