Tutorial: Spack 101¶
Attention SC attendees! Please use this link to send feedback once the tutorial is over! You’ll need to click the “give feedback” link on the destination page. Your reviews will help us keep improving this course.
This is a full-day introduction to Spack with lectures and live demos. It was last presented at Supercomputing 2019 on November 18, 2019.
You can use these materials to teach a course on Spack at your own site, or you can just skip ahead and read the live demo scripts to see how Spack is used in practice.
Full citation: Todd Gamblin, Gregory Becker, Massimiliano Culpo, Mario Melara, Peter Scheibel, and Adam J. Stewart. Managing HPC Software Complexity with Spack. Tutorial presented at Supercomputing 2019 (SC‘19) November 18, 2019. Denver, CO, USA.
We provide scripts that take you step-by-step through basic Spack tasks. They correspond to sections in the slides above. You can use one of the following methods to run through the scripts:
We provide the spack/tutorial container image on Docker Hub that you can use to do the tutorial on your local machine. You can invoke
docker run -it spack/tutorialto start using the container.
When we host the tutorial, we also provision VM instances in AWS, so that users who are unfamiliar with Docker can simply log into a VPM to do the demo exercises.
You should now be ready to run through our demo scripts:
- Basic Installation Tutorial
- Configuration Tutorial
- Package Creation Tutorial
- Module Files
- Modules at a Glance
- Setup for the Tutorial
- Non-hierarchical Module Files
- Hierarchical Module Files
- Working with Templates
- Environments Tutorial
- Stacks Tutorial
- Developer Workflows Tutorial
- Scripting with Spack