Skip to main content

HPC Guide

Getting your analysis done on an HPC cluster, by example

This guide is for you if you have an allocation on an HPC cluster and an analysis in mind, whether you are a scientist, a research software engineer, a PhD student or a postdoc, and want to use the machine well enough to get it done, without first having to know the landscape. It assumes Slurm and Linux, and not much else: nothing here is specific to one cluster, and where the name of something differs between clusters, it says what to look for in yours.

It is written to be read as a book, from one page to the next, and each part builds on the ones before. If you are new to clusters, start at Getting started. If you know what you are after, each part can also be read on its own, and its first page says where it picks up.

Most pages are built around examples: a batch script, a program, a configuration file, explained line by line. Each one is a real file in the guide’s repository, which you can download and run, and the page shows exactly what is in it. In the part on parallelism, every page solves the same problem, a Monte Carlo estimate of π, so that you can compare the ways of running it.

The parts

Title Description
Getting started What a cluster is, your first batch job, finding out what a job used, and a checklist for when one fails.
Software environments Installing the software your analysis needs without sudo: the package managers, from modules to conda, pixi, containers and Spack, tools for yourself, an environment around the vendor’s MPI, and shipping an environment to the nodes.
Parallelism Making a computation use many cores and nodes, by the kind of parallel it is: threads, many independent tasks, ranks that communicate, and workflows.
Storage The kinds of storage a cluster has and which to use for what, Lustre, and moving data on and off the cluster.
Working interactively Editing files on the cluster, a shell on a compute node, and JupyterLab or RStudio on one, securely.
Reproducibility Running an analysis again and getting the same result: what reproducible means, seeds and the order of a sum, freezing an environment, recording the machine, workflows with an environment for each step, and archiving a result.
No matching items

Where this comes from

Much of this guide is reworked from things I have written or made before, for other occasions:

  • my talk on reproducibility in computational research, in November 2025;
  • the documentation of the SO:UK Data Centre, from 2023 and 2024;
  • a hands-on workshop on using a national HPC service, in April 2026, and the research notes and test jobs, on conda and MPI, Lustre, and interactive apps, that came out of using that service;
  • my contributions to the documentation of other projects, on conda, pixi and MPI;
  • my talks on JAX and Numba, in 2025, and posts on my blog about running services on a compute node.