Skip to content

Commit d9fc8f9

Browse files
committed
Minor tweaks to Spack demo notes
1 parent e625bc8 commit d9fc8f9

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

03_building_and_packaging/spack_demo.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Packaging for High-Performance Computing Demo Notes
22

3-
**Note**: It is recommended to try out Spack in a fresh Docker container. To understand how Spack itself is installed, follow Step 1 in a fresh Ubuntu Noble container (`docker run --rm -it ubuntu:noble`). To make things simpler from Step 2 onwards, create a container from the [spack/ubuntu-noble](https://hub.docker.com/r/spack/ubuntu-noble) image, so that Spack is preinstalled.
3+
It is recommended to do this demo in a fresh Docker container. To understand how Spack itself is installed, follow Step 1 in a fresh Ubuntu Noble container (`docker run --rm -it ubuntu:noble`).
4+
5+
To make things simpler from Step 2 onwards, create a container from the [spack/ubuntu-noble](https://hub.docker.com/r/spack/ubuntu-noble) image, so that Spack is preinstalled. Install a text editor (for e.g. vim) before running a Spack command.
46

57
## 1. Spack Setup/Installation
68

@@ -133,15 +135,7 @@
133135
- Concretize the package
134136

135137
```bash
136-
$ spack spec helloworld
137-
Input spec
138-
--------------------------------
139-
helloworld
140-
141-
Concretized
142-
--------------------------------
143-
[email protected]%[email protected]~ipo build_type=RelWithDebInfo arch=linux-ubuntu20.04-skylake
144-
^[email protected]%[email protected]~doc+ncurses+openssl+ownlibs~qt build_type=Release patches=1c540040c7e203dd8e27aa20345ecb07fe06570d56410a24a266ae570b1c4c39,bf695e3febb222da2ed94b3beea600650e4318975da90e4a71d6f31a6d5d8c3d arch=linux-ubuntu20.04-skylake
138+
spack spec helloworld
145139
```
146140

147141
`cmake` is an implicit dependency as we need it for building our package.
@@ -188,7 +182,7 @@
188182
spack edit helloworld
189183
```
190184

191-
or open `package.py` file in `${HOME}/var/spack/repos/builtin/packages/helloworld/`
185+
or open `package.py` file in `.spack/package_repos/fncqgg4/repos/spack_repo/builtin/packages/helloworld/package.py`
192186

193187
- Add the `main` branch as a version
194188

0 commit comments

Comments
 (0)