Skip to content

Commit d00a1c2

Browse files
committed
Disable Day 2 sections and rewrite basics around %c,cxx
1 parent 0a0c2da commit d00a1c2

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

outputs/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ run-stacks: run-environments stacks.sh
4242
run-environments: run-basics environments.sh
4343
run-basics: basics.sh init_spack.sh defs.sh
4444

45-
local: local-scripting
46-
local-scripting: local-dev scripting.sh
45+
local: local-environments
46+
# local-scripting: local-dev scripting.sh
4747
# local-cache: local-dev cache.sh
48-
local-dev: local-packaging dev.sh
49-
local-packaging: local-stacks packaging.sh
50-
local-stacks: local-environments stacks.sh
48+
# local-dev: local-packaging dev.sh
49+
# local-packaging: local-stacks packaging.sh
50+
# local-stacks: local-environments stacks.sh
5151
local-environments: local-basics environments.sh
5252
local-basics: basics.sh init_spack.sh defs.sh
5353

tutorial_basics.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,13 @@ Compilers are providers for virtual packages like ``c``, ``cxx``, and ``fortran`
224224
Because these are often provided by the same package but we might want to use C and C++ from one compiler and Fortran from another, we need a syntax to specify which virtual a package provides.
225225
We call this "virtual assignment", and can be specified by ``%virtual=provider`` or ``^virtual=provider``.
226226

227-
We will now install HDF5 with MPI support provided by MPICH, ensuring that the C component of HDF5 is compiled with ``gcc``.
227+
For example if we wanted to install hdf5 using GCC for the C and C++ components but Intel OneAPI for the Fortran compiler we could write:
228+
229+
.. code-block:: none
230+
231+
hdf5 %c,cxx=gcc %fortran=oneapi
232+
233+
However, we'll keep it simple for now and install HDF5 with MPI support provided by MPICH.
228234
We could use the same syntax for ``^mpi=mpich``, but there's no need because the only way for ``hdf5`` to depend on ``mpich`` is to provide ``mpi``.
229235
This is also why we didn't care to specify which virtuals ``gcc`` and ``clang`` provided earlier when building simpler packages.
230236

0 commit comments

Comments
 (0)