Skip to content
Harshula Jayasuriya edited this page Sep 15, 2023 · 26 revisions

Architecture Specifiers

https://spack.readthedocs.io/en/latest/basic_usage.html#architecture-specifiers

Docker Container for Spack Development

Download the Spack development Dockerfile and then build the dev image by running:

docker build -f Dockerfile.base-spack -t spack-dev:20230915 --target=dev  .

Mirror

A Spack mirror contains the source code for Spack packages. On Gadi, a compute node does not allow Spack to download the source code from the Internet. A Spack mirror allows building Spack packages on a Gadi compute node. More details are available at https://spack.readthedocs.io/en/latest/mirrors.html . Below are instructions on how to create a Spack mirror containing all the source code required to build a particular package.

How to create a Spack mirror:

spack spec PACKAGE_NAME > ./mirror.list
spack mirror create --file ./mirror.list

How to add a Spack mirror to a Spack repository

spack mirror add local_filesystem file://FULLPATH_TO_MIRROR_DIRECTORY

Reverse Dependencies

$ spack dependents -t oasis3-mct
access-om2  cice5  libaccessom2  mom5
Clone this wiki locally