Zenith quickstart

Zenith entered service in August 2026, starting with an early-access programme.

Hardware

The Zenith supercomputer has 72 compute nodes, each with:

Gaining access

Zenith provides GPU computing as a part of the AI Research Resource (AIRR), as a National Compute Resource (NCR), and for the University of Cambridge. Mirroring these three roles of Zenith, there are three different access routes:

  1. AIRR
    • Access to the AIRR share of Zenith can be requested as outlined in the AIRR Guidance.
  2. NCR
    • Initial access to the NCR share of Zenith bas been through the UKRI High-End Computing (HEC) consortia.
  3. Cambridge
    • Initial access to the University of Cambridge share of Zenith has been through an early-access programme.

Information about other possibilities for accessing Zenith through the different routes will be provided as they become available.

Project creation and management

Once an application for access to Zenith has been accepted, an associated Zenith project will be created via the Cambridge Research Computing Access Portal, based on Waldur. The lead applicant will be invited to the project, with the role of Principal Investigator (PI), and may subsequently invite others to be project members. For information on accepting an invitation to join a project, and on managing project resources, please see the corresponding information for Dawn; procedures for Zenith are the same:

Each project receives an allocation of GPU-hours, and has a defined end date. All project members may use the GPU-hours. The balance at any time is obtained by subtracting from the allocation the combined usage of all members. To gain maximum benefit from their allocation, members are encouraged to start using their GPU-hours early. This allows for resolution of any problems, with help available via requests to support@hpc.cam.ac.uk. It also reduces the chances of reaching the project end date with a large number of GPU-hours unused.

In case a project needs an extension, or a top-up of GPU-hours, the project PI, or their delegate, should request this well in advance of the project end date. Who to contact depends on the access route used:

MultiFactor authentication for Zenith login

To be able to login to Zenith, you must have accepted your project invite, and you must also have received email confirmation from the support team that your access has been provisioned.

There are two methods for logging in to Zenith:

Both methods require MultiFactor Authentication (MFA). If, for your choice of method, you’re already set up to generate a Time-based One-Time Password (TOTP) for authenticating to another University of Cambridge research-computing service (CSD3, Dawn, data storage), you should use the same mechanism for Zenith. Otherwise, follow the instructions for activating MultiFactor Authentication.

Note

It’s underlined that the following require three separate MFA activations:

  1. login via ssh to Zenith, Dawn, CSD3;
  2. login via login-web (https://login-web.hpc.cam.ac.uk) to Zenith, Dawn, CSD3;
  3. authentication to Cambridge Research Computing Access Portal (https://access.hpc.cam.ac.uk).

Login

Zenith users should use one of the Zenith-specific login nodes to access Zenith resources. To take advantage of automatic distribution of users between login nodes, use:

ssh <username>@login-zenith.hpc.cam.ac.uk

The first time you login, you will be asked to check that the host key fingerprints are correct. Please check that the fingerprints reported match those on the page CSD3 Host Keys before responding yes (NB not y).

You will then be asked for your TOTP Verification code; this is the MFA step mentioned above.

If you’re unable to connect to a login node, first check that you’ve received and accepted your Zenith project invite, and have received email confirmation that your access to Zenith has been provisioned. If you’ve received confirmation, and you remain unable to connect, please contact support@hpc.cam.ac.uk for further assistance.

Once you’ve logged in, you’ll have immediate access to your storage, but for development work beyond file editing you should generally run an Interactive Slurm session on Zenith, and so gain access to a compute node. This is to avoid excessive load on the login node, and because only compute nodes have GPUs. Zenith login nodes and compute nodes have the same operating system (Rocky Linux 9), and have CPUs of the same type.

Slurm project accounts and partitions

Allocation of resources for computing tasks (jobs) on Zenith is handled by a Slurm workload manager. In a Slurm-managed system, compute resources are combined in one or more clusters, and within a cluster are placed in logical groups, referred to as partitions. Zenith compute nodes are in the Slurm deployment’s only cluster, csd3, where they’re split between two partitions: airr-mi355x (32 nodes) and mi355x (40 nodes).

The resources available to, and used by, members of a project on a Slurm-managed system are recorded through a project account, associated with one or more partitions. When submitting a job, the names of the partition and project account to be used must be specified.

On a Zenith login node or compute node, you can obtain information about the cluster, account(s) and partition(s) available to you with the command:

sshare -U -P -o Cluster,Account,Partition | sort -u | column -t -s'|'

You can also obtain information on resource usage for your account(s) with the following command, which may take a minute or two to complete:

mybalance

Zenith project accounts have (case-insensitive) names following the pattern name-zenith-gpu, and track GPU-hours. Requesting and using a single GPU for 1 hour reduces the account balance by 1 GPU-hour; doing the same for all GPUs on 4 nodes reduces the account balance by 32 GPU-hours.

For any account that you have, you can check the associated partition(s) with the command (substituting actual account name):

sacctmgr show assoc where user=$USER account=NAME-ZENITH-GPU format=account,partition

Filesystems and Research Data Store

Information about available filesystems, and the rules governing them, can be found in: Summary of available filesystems.

On a Zenith login node or compute node, you can obtain information about the storage space available to you, and the space used, with the command:

quota

Each Zenith user is allocated 50 GB storage, accessible only to the user, in /home/<username>. This is the user’s home directory, and is regularly acked up. For more information, see: Backups.

Each Zenith project is allocated a project directory, to which all project members have read-write access, in the Research Data Store (RDS) (not backed up). By default a project directory has 5 TB of storage. If more storage is needed, the project PI, or their delegate, should request this by email to: support@hpc.cam.ac.uk.

Warning

Read-write access to a project directory ceases once the project ends. Read access continues for a 1-month grace period after the project end date, to allow project members to transfer elsewhere any files that they wish to retain. After the grace period, the project directory is deleted.

To list the RDS directories to which you have access, use:

ls ~/rds

The listing will be of links to the physical locations of the directories. You can use the link paths as if they were the directory paths. Links for RDS directories of Zenith project include the project name.

Interactive Slurm session on Zenith

To start an interactive Slurm session on Zenith, run the sint command. For example, to request 1 GPU on 1 node for 10 minutes use, substituting actual partition and account name:

sint --partition=mi355x --nodes=1 --gres=gpu:1 --account=NAME-ZENITH-GPU --time=00:10:00

or, equivalently:

sint -p mi355x -N 1 --gres=gpu:1 -A NAME-ZENITH-GPU -t 00:10:00

Note

Time for which you have interactive use of Zenith GPUs is debited to the account that you specify. This applies also if you leave GPUs idle during your Slurm session.

Note

You will automatically receive 16 CPUs (1/8 of the total GPUs per node) for each GPU requested.

Note

The sint command uses the standard Slurm salloc command, and accepts all command-line options that can be passed to this command.

Modules

Basic environment

To perform basic environment setup for Zenith, including making available modules tailored to the Zenith architecture, run:

module purge
module load rhel9/default-amdgpu-zenith

AMD (ROCM) compilers and system-management interface

To check the versions of the AMD (ROCm) compilers for which modules are available, and the current default, use:

module avail rocm

To enable access to the default version of the AMD (ROCm) compilers, use:

module load rocm

Or to enable access to a specific version, use, for example:

module load rocm/7.14

The rocm module gives access to the amdclang, amdclang++, and amdflang compilers. These are strongly recommended for CPU codes, and essential for GPU codes.

When compiling code to use the Zenith GPUs, you should specify the particular AMD GPU architecture by passing the --offload-arch=gfx950 flag to the AMD (ROCm) compiler that you’re using.

The rocm module also gives access to the command-line tool of the AMD System Management Interface: amd-smi. When run on a Zenith compute node, this provides user access to system information. For example, you can check the version of ROCm available:

$ amd-smi version
AMDSMI Tool: 26.5.0+2b22ab01 | AMDSMI Library version: 26.5.0 | ROCm version: 7.14.0 | amdgpu version: 7.1.9.31600000 | ionic version: N/A

or you can check GPU usage on the compute node where you’re running (GPU identifiers in column headed GPU; percentage usage in column headed GFX%):

$ amd-smi monitor -u
GPU  XCP   GFX_CLK   GFX%
  0    0  2387 MHz  100 %
  1    0  2385 MHz  100 %
  2    0  2386 MHz  100 %
  3    0  2384 MHz  100 %
  4    0  2387 MHz  100 %
  5    0  2386 MHz  100 %
  6    0  2381 MHz  100 %
  7    0  2382 MHz  100 %

GCC compilers

To enable access to the GCC compiler suite, use:

module load gcc

Be aware that the installation of GCC to which this provides access doesn’t have support for offloading onto the GPUs of Zenith compute nodes.

Open MPI

To enable access to Open MPI, use:

module load openmpi

The Open MPI installation is tied to the AMD (ROCm) compiler suite.

Tip

In Open MPI, mpirun and mpiexec point to the same executable, and can be used interchangeably.

Python

There is no central set of Python packages on Zenith: you should install the packages you need yourself. Doing so inside a virtual environment is strongly encouraged, as this keeps projects isolated from one another, and makes them straightforward to rebuild. Possible ways of doing this include:

  • enable access to the central Python installation with module load Python, then use venv:
  • use conda, which you’ll need to install yourself, for example using Miniforge;
  • use uv, which you’ll need to install yourself, for example as outlined in Installing uv.

Tip

Python environments, and the package caches used to build them, can easily run to many GB. As your home directory has a quota of 50 GB quota, it’s suggested to keep environments and caches on your RDS storage. Installation of conda, if used, should similarly be to your RDS storage. For example, you could set up use of RDS storage with:

# Substitute actual name for <project-dir>
RDS_DIR=~/rds/<project-dir>
export UV_CACHE_DIR=$RDS_DIR/.cache/uv
export PIP_CACHE_DIR=$RDS_DIR/.cache/pip
export CONDA_PKGS_DIRS=$RDS_DIR/.conda/pkgs

The same applies to any models or datasets downloaded at run time, e.g. via HF_HOME for Hugging Face.

Running PyTorch interactively

To run a PyTorch application interactively on a Zenith compute node, perform initial environment setup with:

module purge
module load rhel9/default-amdgpu-zenith
module load openmpi

Next, create a virtual environment into which to install PyTorch packages. Any of the options in the Python section above will work; the example below uses uv:

uv init --python 3.14
uv venv
source .venv/bin/activate

Following the AMD Documentation, adapted below for uv, install the torch, torchvision, and torchaudio packages:

uv add --index-url https://repo.amd.com/rocm/whl-multi-arch/ \
 "torch[device-gfx950]==2.12.0+rocm7.14.0" \
 "torchvision[device-gfx950]==0.27.0+rocm7.14.0" \
 "torchaudio==2.11.0+rocm7.14.0"

You can verify your installation on a compute node by running

uv run python -c "import torch; n = torch.cuda.device_count(); print(f'visible GPUs: {n}')"

The output should show the number of GPUS to which you have access.

Note

The primary source of information about PyTorch is the PyTorch website. For installation, the AMD documentation has the advantage of providing instructions for installing libraries for a specific GPU model (AMD Instince MI355X (gfx950) for Zenith). In contrast, the instructions in the PyTorch documentation lead to installation of the libraries for all supported AMD GPU models.

Note

In PyTorch, AMD GPUs use the same device type ("cuda") and the same distributed backend ("nccl") as NVIDIA GPUs. PyTorch code written for NVIDIA GPUs therefore generally runs unchanged.

Running multi-GPU PyTorch jobs using Slurm

To run a multi-GPU single- or multi-node PyTorch job on Zenith using Slurm, you need:

  1. a PyTorch application enabled for distributed processing;
  2. a Slurm script that allocates multiple GPUs on one or multiple nodes, and launches the PyTorch application for all GPUs.

For information about enabling distributed processing in a PyTorch application, see PyTorch Distributed Overview and PyTorch distributed-processing examples on GitHub.

From a Slurm script, a PyTorch application can be launched on multiple GPUs and nodes using srun, mpirun/mpiexec, or torchrun. On Zenith, srun has the advantage of simpler syntax.

The following is the code of a Slurm script, srun_multinode.sh, that uses srun to launch for all GPUs of two nodes the training application multinode.py from the PyTorch Distributed Data Parallel (DDP) tutorial.

#!/bin/bash -l

# Script for running a PyTorch application on multiple nodes using srun.

# Set Slurm directives to define job requirements.
#SBATCH --job-name=multinode  # name that identifies job in queue
#SBATCH --output=%x_%j.log    # output file name, formed from job name and id
#SBATCH --account=my_account  # account to which resource usage is to be debited
#SBATCH --partition=mi355x    # cluster partition to be used
#SBATCH --nodes=2             # number of nodes to be allocated
#SBATCH --gres=gpu:8          # number of GPUs to be allocated per node;
                              # must be all GPUs if using more than 1 node
#SBATCH --time=00:30:00       # run-time limit (HH:MM:SS)


# Initialise timing.
T1=$SECONDS
echo "Job start on $(hostname): $(date)"

# Exit at first failure.
set -e

# Perform environment setup.
module purge
module load rhel9/default-amdgpu-zenith
module load openmpi

source /path/to/user/script/for/pytorch/setup

# Set PyTorch global variables.
export WORLD_SIZE=$((SLURM_NNODES * SLURM_GPUS_ON_NODE))
export MASTER_ADDR=$(scontrol show hostnames $SLURM_JOB_NODELIST | head -n 1)
export MASTER_PORT=$(((SLURM_JOB_ID % 10000) + 50000))

# Define command to set PyTorch variables for an individual process.
RUNTIME_SETUP="export RANK=\$PMI_RANK LOCAL_RANK=\$SLURM_LOCALID"

# Define Python script to run, together with its arguments.
# For multinode.py, the positional arguments are
# number of epochs and number of epochs between checkpoints.
TO_RUN="multinode.py 10000 100 --batch_size 32"

# Define command to launch PyTorch application for a single GPU.
PYTHON_LAUNCH="bash -c '$RUNTIME_SETUP; python $TO_RUN'"

# Define command to launch PyTorch application for all nodes and GPUs.
SRUN_LAUNCH="srun --nodes=$SLURM_NNODES\
  --ntasks-per-node=$SLURM_GPUS_ON_NODE\
  --gres=gpu:$SLURM_GPUS_ON_NODE $PYTHON_LAUNCH"

# Launch and time PyTorch application for all nodes and GPUs.
T2=$SECONDS
echo ""
echo "PyTorch distributed processing start:" 
echo "$SRUN_LAUNCH"
echo ""
eval "$SRUN_LAUNCH"
echo ""
echo "PyTorch processing completed: $(date)"
echo "Run time: $((SECONDS - T2)) seconds"
echo ""
echo "Job time: $((SECONDS - T1)) seconds"

To run the example Slurm script from a Zenith login-node, you would need to do as follows:

  • Download to the directory of your choice: srun_multinode.sh, multinode.py, datautils.py, clicking on the Download raw file button on the GitHub pages of the latter two.

  • In the downloaded copy of srun_multinode.sh:

    • substitute for my_account the name of the project account to be used;
    • substitute for mi355x the name of the partition to be used, if different;
    • modify as needed the section headed # Perform environment setup. to perform environment setup specific to your installation of PyTorch.
  • Submit the updated script to the Slurm system:

    sbatch ./srun_multinode.sh
    
  • When the script has completed, check its output. Both stdout and stderr will have been written to a file with a name of the form <job name>_<job_id>.log, in the directory from which the script was submitted.

Slurm scripts that perform the same task using mpiexec and torchrun are available:

Tip

For information about sbatch directives and command-line options, see: sbatch documentation.

Tip

For information about environment variables used by PyTorch in distributed processing, see: torchrun environment variables. If a PyTorch application is run using torchrun only (multiple GPUs on a single node), the environment variables listed are set automatically. If srun or mpirun/mpiexec is used (multiple GPUs on a single node or on multiple nodes), selected variables need to be manually set, for example as in srun_multinode.sh.

Support

In case of problems or questions relating to Zenith, please follow the guidance of Getting Support on CSD3.

Acknowledgements

We request that you acknowledge use of Zenith in all publications and presentations that use any results generated through your use of the system. The following acknowledgement can be used in papers:

The authors acknowledge the use of resources provided by the Zenith supercomputer, operated by the University of Cambridge and delivered in partnership with Dell Technologies and AMD. Zenith is funded by UK Research and Innovation (UKRI) under the UK AI Research Resource (AIRR; grant ST/Z000890/1), an initiative of the UK Government’s Department for Business, Innovation, Science, and Trade (BIST), and the National Compute Resource (NCR; grant UKRI4064) programmes.