Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/spack/tutorial-ubuntu-22.04:v2024-05-07
FROM ghcr.io/spack/tutorial-ubuntu-22.04

ENV DEBIAN_FRONTEND=noninteractive

Expand All @@ -18,7 +18,7 @@ RUN apt-get remove -y gcc-12

# Download the buildcache
RUN mkdir /mirror
RUN rclone copy :s3:spack-binaries/v0.23.1/tutorial /mirror
RUN rclone copy :s3:spack-binaries/v2025.07.0/tutorial /mirror

RUN chmod -R go+r /mirror

Expand Down
18 changes: 9 additions & 9 deletions outputs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ update-outputs: run

run: run-scripting

run-scripting: run-dev scripting.sh
run-scripting: run-environments scripting.sh
# run-cache: run-dev cache.sh
run-dev: run-packaging dev.sh
run-packaging: run-stacks packaging.sh
run-stacks: run-environments stacks.sh
# run-dev: run-packaging dev.sh
# run-packaging: run-stacks packaging.sh
# run-stacks: run-environments stacks.sh
run-environments: run-basics environments.sh
run-basics: basics.sh init_spack.sh defs.sh

local: local-scripting
local-scripting: local-dev scripting.sh
local: local-environments
# local-scripting: local-dev scripting.sh
# local-cache: local-dev cache.sh
local-dev: local-packaging dev.sh
local-packaging: local-stacks packaging.sh
local-stacks: local-environments stacks.sh
# local-dev: local-packaging dev.sh
# local-packaging: local-stacks packaging.sh
# local-stacks: local-environments stacks.sh
local-environments: local-basics environments.sh
local-basics: basics.sh init_spack.sh defs.sh

Expand Down
7 changes: 5 additions & 2 deletions outputs/basics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spack config add "config:suppress_gpg_warnings:true"

example basics/source-setup ". share/spack/setup-env.sh"

# pin repository to release
example basics/repo "spack repo update builtin --tag $packages_release"

# spack list
example basics/list "spack list"
example basics/list-py "spack list 'py-*'"
Expand Down Expand Up @@ -59,7 +62,7 @@ example basics/hdf5-spec "spack spec hdf5"
example basics/hdf5 "spack install hdf5"
example basics/hdf5-no-mpi "spack install hdf5~mpi"

example basics/hdf5-hl-mpi "spack install hdf5+hl+mpi %c,cxx=gcc ^mpich"
example basics/hdf5-hl-mpi "spack install hdf5+hl+mpi ^mpich"

example basics/find-ldf-2 "spack find -ldf"

Expand Down Expand Up @@ -102,4 +105,4 @@ example basics/compilers-2 "spack compilers"

example basics/spec-zziplib "spack spec zziplib"

example basics/compiler-uninstall 'spack uninstall gcc@12'
echo y | example basics/compiler-uninstall 'spack uninstall gcc@12'
14 changes: 7 additions & 7 deletions outputs/basics/clone.out
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
$ git clone --depth=2 --branch=releases/v0.23 https://github.com/spack/spack.git ~/spack
$ git clone --depth=2 --branch=releases/v1.0 https://github.com/spack/spack.git ~/spack
Cloning into '/home/spack/spack'...
remote: Enumerating objects: 20971, done.K
remote: Counting objects: 100% (20971/20971), done.K
remote: Compressing objects: 100% (11448/11448), done.K
remote:nTotale20971 (delta01801),9reused014170i(delta.1509),/pack-reused 0 (from 0)K
Receiving objects: 100% (20971/20971), 14.78 MiB | 20.70 MiB/s, done.
Resolving deltas: 100% (1801/1801), done.
remote: Enumerating objects: 2294, done.K
remote: Counting objects: 100% (2294/2294), done.K
remote: Compressing objects: 100% (1547/1547), done.K
remote:nTotale2294 (delta2305),2reused 1260 (delta 235), pack-reused 0 (from 0)K
Receiving objects: 100% (2294/2294), 5.29 MiB | 19.99 MiB/s, done.
Resolving deltas: 100% (305/305), done.
$ cd ~/spack
7 changes: 7 additions & 0 deletions outputs/basics/compiler-list.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ spack compilers
==> Available compilers
-- gcc ubuntu22.04-x86_64 ---------------------------------------
[e] gcc@11.4.0 [e] gcc@10.5.0

-- llvm ubuntu22.04-x86_64 --------------------------------------
[e] llvm@14.0.0
6 changes: 6 additions & 0 deletions outputs/basics/compiler-uninstall.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$ spack uninstall gcc@12
y
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx=gcc@11.4.0 --------------
fmxnit5 gcc@12.5.0

==> 1 packages will be uninstalled. Do you want to proceed? [y/N] ==> Successfully uninstalled gcc@12.5.0~binutils+bootstrap~graphite~mold~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' arch=linux-ubuntu22.04-x86_64_v3/fmxnit5
7 changes: 7 additions & 0 deletions outputs/basics/compilers-2.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ spack compilers
==> Available compilers
-- gcc ubuntu22.04-x86_64 ---------------------------------------
[e] gcc@11.4.0 [e] gcc@10.5.0 [+] gcc@12.5.0

-- llvm ubuntu22.04-x86_64 --------------------------------------
[e] llvm@14.0.0
8 changes: 4 additions & 4 deletions outputs/basics/compilers.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ spack compilers
==> Available compilers
-- clang ubuntu22.04-x86_64 -------------------------------------
clang@14.0.0

-- gcc ubuntu22.04-x86_64 ---------------------------------------
gcc@11.4.0 gcc@10.5.0
[e] gcc@11.4.0 [e] gcc@10.5.0

-- llvm ubuntu22.04-x86_64 --------------------------------------
[e] llvm@14.0.0
2 changes: 1 addition & 1 deletion outputs/basics/find-O3.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ spack find cflags=-O3
-- linux-ubuntu22.04-x86_64_v3 / gcc@11.4.0 ---------------------
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx=gcc@11.4.0 --------------
zlib-ng@2.0.7
==> 1 installed package
12 changes: 9 additions & 3 deletions outputs/basics/find-d-tcl.out
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
$ spack find -d tcl
-- linux-ubuntu22.04-x86_64_v3 / clang@14.0.0 -------------------
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx=clang@14.0.0 ------------
tcl@8.6.12
compiler-wrapper@1.0
glibc@2.35
gmake@4.4.1
llvm@14.0.0
zlib-ng@2.0.7


-- linux-ubuntu22.04-x86_64_v3 / gcc@11.4.0 ---------------------
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx=gcc@11.4.0 --------------
tcl@8.6.12
compiler-wrapper@1.0
gcc@11.4.0
gcc-runtime@11.4.0
glibc@2.35
gmake@4.4.1
zlib-ng@2.0.7

tcl@8.6.12
compiler-wrapper@1.0
gcc@11.4.0
gcc-runtime@11.4.0
glibc@2.35
gmake@4.4.1
zlib-ng@2.2.1
zlib-ng@2.2.4

==> 3 installed packages
108 changes: 57 additions & 51 deletions outputs/basics/find-d-trilinos.out
Original file line number Diff line number Diff line change
@@ -1,97 +1,103 @@
$ spack find -d trilinos
-- linux-ubuntu22.04-x86_64_v3 / gcc@11.4.0 ---------------------
trilinos@16.0.0
cmake@3.30.5
curl@8.10.1
nghttp2@1.63.0
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx,fortran=gcc@11.4.0 ------
trilinos@16.1.0
cmake@3.31.8
curl@8.11.1
nghttp2@1.65.0
diffutils@3.10
openssl@3.4.0
ca-certificates-mozilla@2023-05-30
openssl@3.4.1
ca-certificates-mozilla@2025-05-20
ncurses@6.5
zlib-ng@2.2.1
zlib-ng@2.2.4
compiler-wrapper@1.0
gcc@11.4.0
gcc-runtime@11.4.0
glibc@2.35
gmake@4.4.1
hwloc@2.11.1
libpciaccess@0.17
util-macros@1.20.1
libxml2@2.13.4
libiconv@1.17
xz@5.4.6
pkgconf@2.2.0
kokkos@4.3.01
openblas@0.3.28
openmpi@5.0.5
libxml2@2.13.5
libiconv@1.18
xz@5.6.3
pkgconf@2.3.0
kokkos@4.5.01
kokkos-kernels@4.5.01
openblas@0.3.29
openmpi@5.0.8
autoconf@2.72
m4@1.4.19
m4@1.4.20
libsigsegv@2.14
automake@1.16.5
libevent@2.1.12
libtool@2.4.7
findutils@4.9.0
findutils@4.10.0
gettext@0.23.1
tar@1.35
pigz@2.8
zstd@1.5.7
numactl@2.0.18
openssh@9.9p1
krb5@1.21.3
bison@3.8.2
gettext@0.22.5
tar@1.34
pigz@2.8
zstd@1.5.6
libedit@3.1-20240808
libxcrypt@4.4.35
libxcrypt@4.4.38
perl@5.40.0
berkeley-db@18.1.40
bzip2@1.0.8
gdbm@1.23
readline@8.2
pmix@5.0.3
pmix@5.0.5

trilinos@16.0.0
cmake@3.30.5
curl@8.10.1
nghttp2@1.63.0
trilinos@16.1.0
cmake@3.31.8
curl@8.11.1
nghttp2@1.65.0
diffutils@3.10
openssl@3.4.0
ca-certificates-mozilla@2023-05-30
openssl@3.4.1
ca-certificates-mozilla@2025-05-20
perl@5.40.0
berkeley-db@18.1.40
ncurses@6.5
zlib-ng@2.2.1
zlib-ng@2.2.4
compiler-wrapper@1.0
gcc@11.4.0
gcc-runtime@11.4.0
glibc@2.35
gmake@4.4.1
hdf5@1.14.5
pkgconf@2.2.0
hdf5@1.14.6
pkgconf@2.3.0
hwloc@2.11.1
libpciaccess@0.17
util-macros@1.20.1
libxml2@2.13.4
libiconv@1.17
xz@5.4.6
kokkos@4.3.01
mpich@4.2.3
findutils@4.9.0
libfabric@1.22.0
libxml2@2.13.5
libiconv@1.18
xz@5.6.3
kokkos@4.5.01
kokkos-kernels@4.5.01
mpich@4.3.0
findutils@4.10.0
gettext@0.23.1
bzip2@1.0.8
tar@1.35
pigz@2.8
zstd@1.5.7
libfabric@2.2.0
yaksa@0.3
autoconf@2.72
automake@1.16.5
libtool@2.4.7
m4@1.4.19
m4@1.4.20
libsigsegv@2.14
python@3.13.0
bzip2@1.0.8
expat@2.6.4
python@3.13.5
expat@2.7.1
libbsd@0.12.2
libmd@1.0.4
libmd@1.1.0
gdbm@1.23
gettext@0.22.5
tar@1.34
pigz@2.8
zstd@1.5.6
libffi@3.4.6
libffi@3.4.8
readline@8.2
sqlite@3.46.0
util-linux-uuid@2.40.2
openblas@0.3.28
util-linux-uuid@2.41
openblas@0.3.29

==> 2 installed packages
7 changes: 5 additions & 2 deletions outputs/basics/find-dep-mpich.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
$ spack find ^mpich
-- linux-ubuntu22.04-x86_64_v3 / gcc@11.4.0 ---------------------
hdf5@1.14.5 trilinos@16.0.0
-- linux-ubuntu22.04-x86_64_v3 / %c,cxx,fortran=gcc@11.4.0 ------
trilinos@16.1.0

-- linux-ubuntu22.04-x86_64_v3 / %c=gcc@11.4.0 ------------------
hdf5@1.14.6
==> 2 installed packages
Loading