Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

Spack is a package management tool designed to support multiple versions and configurations of software on a wide variety of platforms and environments. It was designed for large supercomputing centers, where many users and application teams share common installations of software on clusters with exotic architectures, using libraries that do not have a standard ABI. Spack is non-destructive: installing a new version does not break existing installations, so many configurations can coexist on the same system.

Most importantly, Spack is simple. It offers a simple spec syntax so that users can specify versions and configuration options concisely. Spack is also simple for package authors: package files are written in pure Python, and specs allow package authors to maintain a single file for many different builds of the same package.


How can I built my own python software stack using SPACK

Download  SPACK to your home directory (If using another directory, replace $HOME)

Download and install from github
git clone https://github.com/spack/spack
To use system spack as an upstream install
cd ${HOME}/spack
git checkout releases/v0.16
cp /share/Apps/usr/etc/spack/* ${HOME}/spack/etc/spack

Default target is x86_64. To build applications optimized for underlying cpu replace x86_64 on line 97 of packages.yaml with

  • ivybridge for Ivybridge nodes i.e. debug partition (will run on all partitions)
  • haswell for Haswell and Broadwell nodes i.e lts, im1080, eng, and engc partitions (will not run on debug partition)
  • skylake_avx512 for Skylake and Cascade lake nodes only i.e. enge, im2080, health, chem, hawcpu, hawkgpu, hawkmem and infolab partitions


Add spack to your environment by sourcing the setup-env.sh (add to your .bashrc to always have spack in your path)
source ${HOME}/spack/share/spack/setup-env.sh


Add compilers to spack
spack compiler add

  

Find an installed package e.g. numpy
spack find py-numpy

All python (r) packages have py- (r-) prefix

Install a package, for e.g. JupyterLab
spack install py-jupyterlab
If you want the spack built packages to be available for use with module command, modify the module path as follows
export MODULEPATH=${HOME}/spack/share/spack/modules/linux-centos8-x86_64:${MODULEPATH}


Visit SPACK Website for list of packages that can be built with SPACK.


  • No labels