Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.73 KB

setup_bb5.md

File metadata and controls

52 lines (44 loc) · 1.73 KB

Setup for BlueBrain5

On BlueBrain5, clone this repository to get started using Spack. The following commands are a good way to get started:

$ git clone https://github.com/BlueBrain/spack.git
$ . spack/share/spack/setup-env.sh
$ ln -s /gpfs/bbp.cscs.ch/apps/hpc/jenkins/config/*.yaml ${SPACK_ROOT}/etc/spack

Note that the git clone should be executed in a subdirectory of the home directory on GPFS. The project directories are backed by a slower GPFS setup, and using a Spack installation from the project directories will result in a big performance penalty.

This will install all software into the directory that Spack was cloned into. The configuration linked into the etc/spack subdirectory will provide a setup to re-use centrally installed software and decrease installation times.

Customizing the Software Installation Directory

To use multiple different software directories, one can override the configuration above by creating a ${HOME}/.spack/config.yaml with the following contents:

config:
  install_tree:
    root: $SPACK_INSTALL_PREFIX
  source_cache: $SPACK_INSTALL_PREFIX/.cache
  module_roots:
    tcl: $SPACK_INSTALL_PREFIX/modules/tcl
    lmod: $SPACK_INSTALL_PREFIX/modules/lmod

and then exporting the environment variable ${SPACK_INSTALL_PREFIX} to point to a location where the software should be located.

Automatically Generate Modules for all Installed Software

Similarly, the module configuration can be overwritten to provide modules for all manually installed software, including new dependencies, by creating the file ${HOME}/.spack/modules.yaml with the following contents:

modules:
  tcl:
    whitelist:
      - '@:'
    projections:
      all: '{name}/{version}-{hash:6}'