Software environments
This part is about getting the software your analysis needs onto the cluster, when you cannot use sudo and the system’s package manager the way you would on your own computer. It starts with the idea everything else rests on, installing into a PREFIX of your own, and then goes through the ways to fill one, from the modules the sysadmins provide, through conda and pixi, which is where I’d recommend most of your software comes from, to containers and Spack for what those can’t do. Then come the command-line tools you want everywhere, whatever the project, and an environment built around the vendor’s MPI, which is the one that knows the cluster’s network. It ends with how to ship an environment to the compute nodes when reading it from the shared filesystem becomes the bottleneck.
| Title | Description |
|---|---|
| Installing software without sudo | Why the usual way of installing software does not work on an HPC, what a PREFIX is, where to put what you install, and the two kinds of package manager, by what they are for. |
| MPI and the vendor’s MPI | What MPI is, why the MPI the vendor installed is the one that knows the network and the scheduler, why you launch with srun, and the MPICH ABI, which lets software from conda run on the vendor’s MPI. |
| Which package manager? | Modules, conda and mamba, pixi, containers and Spack side by side: what each gives you, whether it is prebuilt or built from source, how you reproduce it, when to reach for it, and which to try first. |
| Package managers | The ways to fill a PREFIX of your own: modules, conda and mamba, pixi, containers and Spack, which one for what, and each in a batch job. |
| Command-line tools for yourself | Getting the everyday tools the system lacks, from a conda environment of tools, pixi global, or a direct download, and how many people you are trusting each time. |
| MPI | Running an MPI program across nodes on the vendor’s MPI, with conda or Spack, and checking that it really spans them. |
| Shipping an environment to the compute nodes | Packing an environment into one file and unpacking it onto node-local storage at the start of a job, with a plain tarball or conda-pack, for many short jobs or clusters without a shared filesystem. |