preloader

The module “USER-SPACK” creates a folder with the same name in your home directory. The module allows you to use spack for installing packages with all the advantages spack offers.

USER-SPACK

The module integrates your locally installed spack packages directly into the environment module system Lmod — if compiled with a different compiler than the default system compiler (currently gcc@8.5.0). For example spack install <package> %gcc@12.1.0 installs the < package > using the gcc compiler in version 12.1.0 and creates a module file for you. Not mentioning any compiler (with %) result in using the system compiler and no module file creation. In these cases you rely on ’ spack load. Furthermore, all globally available software packages are made known to your local user spack installation on the first load of the module – no need to recompile these nor make them known to your spack installation. Hence, you are free to choose between spack and module for loading and unloading installed packages.

Tip: spack find -x shows you only the explicitly (globally) installed packages, without any dependencies. A spack documentation with many examples and tutorials can be found online.

If you cannot find a package that should exist globally using module spider, you may unload USER-SPACK or update your local copy of the cluster module files using the following command: spack module lmod refresh --delete-tree --upstream-modules -y

Please note: USER-SPACK is only compatible with the following shells: bash/zsh/sh/csh