You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial_basics.rst
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,9 +166,23 @@ Note that each package has a top-level entry, even if it also appears as a depen
166
166
.. literalinclude:: outputs/basics/find-ldf.out
167
167
:language: console
168
168
169
+
Spack models the dependencies of packages as a directed acyclic graph (DAG).
170
+
The ``spack find -d`` command shows the tree representation of that graph, which loses some dependency relationship information.
171
+
We can also use the ``spack graph`` command to view the entire DAG as a graph.
172
+
173
+
.. literalinclude:: outputs/basics/graph-tcl.out
174
+
:language: console
175
+
169
176
Let's move on to slightly more complicated packages.
170
177
HDF5 is a good example of a more complicated package, with an MPI dependency.
171
178
If we install it with default settings it will build with OpenMPI.
179
+
We can check the install plan in advance to ensure it's what we want to install using the ``spack spec`` command.
180
+
The ``spack spec`` command accepts the same spec syntax.
181
+
182
+
.. literalinclude:: outputs/basics/hdf5-spec.out
183
+
:language: console
184
+
185
+
Assuming we're happy with that configuration, we will now install it.
172
186
173
187
.. literalinclude:: outputs/basics/hdf5.out
174
188
:language: console
@@ -201,13 +215,6 @@ We'll do a quick check in on what we have installed so far.
201
215
.. literalinclude:: outputs/basics/find-ldf-2.out
202
216
:language: console
203
217
204
-
Spack models the dependencies of packages as a directed acyclic graph (DAG).
205
-
The ``spack find -d`` command shows the tree representation of that graph.
206
-
We can also use the ``spack graph`` command to view the entire DAG as a graph.
207
-
208
-
.. literalinclude:: outputs/basics/graph-hdf5.out
209
-
:language: console
210
-
211
218
HDF5 is more complicated than our basic example of zlib-ng and Tcl, but it's still within the realm of software that an experienced HPC user could reasonably expect to manually install given a bit of time.
212
219
Now let's look at an even more complicated package.
0 commit comments