Skip to content

Commit 9311bb1

Browse files
committed
last updates for config section
Signed-off-by: Gregory Becker <becker33@llnl.gov>
1 parent 9d62186 commit 9311bb1

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
$ spack spec zlib%gcc@11.4.0
2-
- zlib@1.3.1 cppflags=-g +optimize+pic+shared build_system=makefile arch=linux-ubuntu22.04-x86_64 %c,cxx=gcc@11.4.0
3-
- ^compiler-wrapper@1.0 build_system=generic arch=linux-ubuntu22.04-x86_64
4-
[e] ^gcc@11.4.0~binutils+bootstrap~graphite~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' arch=linux-ubuntu22.04-x86_64
5-
- ^gcc-runtime@11.4.0 cppflags=-g build_system=generic arch=linux-ubuntu22.04-x86_64
6-
[e] ^glibc@2.35 build_system=autotools arch=linux-ubuntu22.04-x86_64
7-
- ^gmake@4.4.1 cppflags=-g ~guile build_system=generic arch=linux-ubuntu22.04-x86_64 %c=gcc@11.4.0
1+
$ spack spec zlib%gcc@10
2+
- zlib@1.3.1 cppflags=-g +optimize+pic+shared build_system=makefile arch=linux-ubuntu22.04-x86_64_v3 %c,cxx=gcc@10.5.0
3+
[+] ^compiler-wrapper@1.0 build_system=generic arch=linux-ubuntu22.04-x86_64_v3
4+
[e] ^gcc@10.5.0~binutils+bootstrap~graphite~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=2c18531 arch=linux-ubuntu22.04-x86_64_v3
5+
- ^gcc-runtime@10.5.0 cppflags=-g build_system=generic arch=linux-ubuntu22.04-x86_64_v3
6+
[e] ^glibc@2.35 build_system=autotools arch=linux-ubuntu22.04-x86_64_v3
7+
- ^gmake@4.4.1 cppflags=-g ~guile build_system=generic arch=linux-ubuntu22.04-x86_64_v3 %c=gcc@10.5.0

tutorial_configuration.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ Let's open our compilers configuration file again and add a compiler flag:
298298
packages:
299299
gcc:
300300
externals:
301-
- spec: gcc@11.4.0 languages:='c,c++,fortran'
301+
- spec: gcc@10.5.0 languages:='c,c++,fortran'
302302
prefix: /usr
303303
extra_attributes:
304304
compilers:
305-
c: /usr/bin/gcc
306-
cxx: /usr/bin/g++
307-
fortran: /usr/bin/gfortran
305+
c: /usr/bin/gcc-10
306+
cxx: /usr/bin/g++-10
307+
fortran: /usr/bin/gfortran-10
308308
flags:
309309
cppflags: -g
310310
@@ -511,7 +511,6 @@ Here, we've told Spack that Curl 7.81.0 is installed on our system.
511511
We've also told it the installation prefix where Curl can be found.
512512
We don't know exactly which variants it was built with, but that's okay.
513513
Finally, we set ``buildable: false`` to require that Spack not try to build its own.
514-
The cmake config isn't strictly required, but you might get a strange concretization without it.
515514

516515
.. The weighting/preferences dont work quite the same so I skipped right to buildable:false
517516
@@ -533,7 +532,7 @@ To express that we don't want any other MPI installed, we can use the virtual ``
533532
While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be able to build with MPI again:
534533

535534
.. code-block:: yaml
536-
:emphasize-lines: 19-24
535+
:emphasize-lines: 12,18-21
537536
538537
spack:
539538
specs: []
@@ -546,6 +545,7 @@ While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be a
546545
- "%llvm"
547546
mpi:
548547
require: mpich
548+
buildable: false
549549
curl:
550550
externals:
551551
- spec: curl@7.81.0 %gcc@11.4.0
@@ -555,8 +555,6 @@ While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be a
555555
externals:
556556
- spec: mpich@4.0+hydra device=ch4 netmod=ofi
557557
prefix: /usr
558-
mpi:
559-
buildable: false
560558
561559
.. 3.externals.out has mpich
562560
.. The concretization result is strange and enables some qt stuff that makes it huge

0 commit comments

Comments
 (0)