Instructions for Leonardo
On leonardo @CINECA, Spack is already installed as a module, and the user just has to load it and then create and configure the environment:
- load Spack:
-
create and activate the environment with the following commands:
Note that the-doption will create the environment in the current folder, typically thehomefolder but can be a dedicated one 1. The-pis just a flag to visualize the environment is active. -
add Python and py-pip to the environment and install them
In this way, the (last) preferred version of Python will be installed. You can dospack findto see which packages have been installed. -
install Python packages needed to run the workflow in the environment
The file
requirements.txtis provided with the workflow.
The environment is ready. For any new session, of course, it must be activated by the commands
The same two lines should be inserted within the file load_env.source (see the installation instructions).
-
Omitting such a flag is not allowed on Leonardo since the standard user does not have writing permission on the default spack folder. ↩