This repository tracks the packages installed via Spack for the zen4 partition of the REPACSS cluster. If you wish to test or contribute new packages, please follow the instructions below.
To test and install packages in your own user environment without affecting the shared installation:
- Clone the reporsitory:
git clone https://github.com/nsfcac/Spack-zen4.git
cd Spack-zen4- Enable local install tree: Uncomment the following lines in spack.yaml to use a custom install location:
config:
install_tree: $HOME/.spack/.spack-store- Activate the environment:
spack env activate . -pThe
-pflag updates your shell prompt to show the active environment (e.g.,[Spack-zen4]).
- Test and install packages in your personal environment without interfering with system-wide configurations.
Follow these steps to search for and install a package:
- Search for a package (e.g., for MPI libraries):
spack list mpi- Get detailed info about a package (e.g., available versions, variants, and dependencies):
spack info mpich- Add a package to the environment (example with a specific version):
spack add mpich@4.2.3- Concretize and install:
spack concretize
spack install- Only modify spack.yaml when making changes for the shared environment.
- Use a separate branch or fork for proposing changes, and submit a pull request when ready.