-
Notifications
You must be signed in to change notification settings - Fork 55
Spack Extension
This section describes the spack stack extension of the spack command, which simplifies the installation process. The spack stack extension is automatically registered with Spack when sourcing spack-stack's setup.sh script. As for any other spack command, help is available with spack stack -h. The spack stack extension has two subcommands, explained in the following.
spack stack [create|setup-meta-modules]
The spack stack create command creates a new environment or a new container.
spack stack create [env|ctr]
The full list of options for creating environments is available by running
spack stack create env --help
Note. At the time of writing the container creation is not supported. Do not use spack stack create ctr.
Following a successful creation of an environment (not a container), and the generation of the spack lmod/tcl module files via spack module [lmod|tcl] refresh, the meta modules for the compiler and MPI library are generated with
spack stack setup-meta-modules
This command takes no arguments; it completes the environment generation and creates a Core directory that must be added to the module path (module use .../Core) as shown in numerous other places in the documentation.