/isambard:mpifrom isambard
Guides using MPI on Isambard-AI and Isambard 3 supercomputers: Cray MPICH, PrgEnv, srun --mpi flags, PMI/PMIx, libfabric for Slingshot 11, and mpi4py. Covers compiler wrappers and multi-node job setup.
Ships in isambard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MPI (Message Passing Interface) enables parallel communication across compute nodes. On
Isambard-AI and Isambard 3, MPI must communicate with the Slingshot 11 (SS11)
high-speed interconnect via libfabric to achieve optimal latency and bandwidth.
MPI application → libfabric → Slingshot 11 NIC → network
Never use
mpirunormpiexec. Always launch MPI applications withsrunso you can supply the correct--mpiflag for the PMI type. Usingmpirun/mpiexecbypasses Slurm's process management and will not work correctly.
srun on Isambard.mpirun or mpiexec on Isambard.--mpi value that matches the MPI implementation in use.PrgEnv or a Conda/MPI build that is explicitly configured
for Slingshot 11.The recommended MPI is Cray MPICH, provided by the cray-mpich module. It is loaded
automatically with any Cray Programming Environment:
module load PrgEnv-gnu # recommended
# or
module load PrgEnv-cray
After loading, verify the MPI link flags:
# With PrgEnv-gnu
mpicc -show
# gcc -I/opt/cray/pe/mpich/.../ofi/gnu/12.3/include -L.../lib -lmpi_gnu_123
# With PrgEnv-cray
mpicc -show
# craycc -I/opt/cray/pe/mpich/.../ofi/cray/17.0/include -L.../lib -lmpi_cray
The -lmpi_gnu_* or -lmpi_cray library is the Cray MPICH build tuned for Slingshot.
aarch64 known issues: Cray MPICH support for aarch64 was recently added and some environment variable workarounds may be needed. Check the Known Issues page for current advice before running.
MPI processes need a Process Manager Interface (PMI) to coordinate ranks across nodes
through Slurm. The correct --mpi flag to srun depends on which MPI library is in use.
List available PMI types on the system:
srun --mpi=list
# cray_shasta
# none
# pmi2
# pmix (pmix_v4)
--mpi flag| MPI library | --mpi flag | Notes |
|---|---|---|
| Cray MPICH (default) | cray_shasta | Default; usually works without specifying |
| OpenMPI ≤ 4.x | pmi2 | Required for older OpenMPI |
| OpenMPI ≥ 5.0 | pmix | Required for modern OpenMPI |
# Cray MPICH (cray_shasta is the default, but explicit is clearer)
srun --mpi=cray_shasta ./mpi_app
# OpenMPI ≤ 4.x
srun --mpi=pmi2 ./mpi_app
# OpenMPI ≥ 5.0
srun --mpi=pmix ./mpi_app
If you do not need to specify a custom PMI and are using Cray MPICH,
srunwithout--mpiwill usecray_shastaby default.
The system Cray MPICH is recommended for performance. If you need a different version (e.g. for software that requires OpenMPI), you have two options.
See the Python/Conda guide to set up Miniforge first, then:
# MPICH via conda-forge
conda install -c conda-forge mpich
# OpenMPI via conda-forge
conda install -c conda-forge openmpi
Note: Conda-installed MPI will not use the Slingshot 11 interconnect and will have lower multi-node performance than Cray MPICH. Use only when necessary for software compatibility.
For maximum control or when Slingshot integration is needed with OpenMPI:
For Python MPI, see the Python guide
— specifically the section on building mpi4py from source against the Cray MPI stack
using module load PrgEnv-gnu and pip install --no-binary mpi4py mpi4py.
| Goal | Command / setting |
|---|---|
| Load default MPI (recommended) | module load PrgEnv-gnu |
| Check MPI link flags | mpicc -show |
| Run an MPI job (Cray MPICH) | srun --mpi=cray_shasta ./mpi_app |
| Run an MPI job (OpenMPI ≤4) | srun --mpi=pmi2 ./mpi_app |
| Run an MPI job (OpenMPI ≥5) | srun --mpi=pmix ./mpi_app |
| List available PMI types | srun --mpi=list |
| Install OpenMPI via conda | conda install -c conda-forge openmpi |
| Install MPICH via conda | conda install -c conda-forge mpich |
| Install mpi4py (source, Slingshot-aware) | module load PrgEnv-gnu + pip install --no-binary mpi4py mpi4py |
| MPI in containers (Podman-HPC) | --openmpi-pmi2 flag + srun --mpi=pmi2 |
| MPI in containers (Apptainer) | module load brics/apptainer-multi-node + source /host/adapt.sh |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/brics-hpc-ai-codeGuidance for writing, reviewing, and running AI-generated code responsibly on Bristol Centre for Supercomputing (BriCS) shared HPC resources: Isambard-AI and Isambard 3. Use this skill whenever generating, adapting, or debugging code intended to run on BriCS facilities, writing Slurm job scripts, managing storage, installing software, or ensuring compliance with BriCS policies.
/containersGuide for using containers on Isambard AI (BriCS) supercomputers with Podman-HPC and Apptainer (formerly Singularity). Use this skill whenever a user asks about running containers on Isambard, using podman-hpc or apptainer/singularity, pulling or building container images, running containers on compute nodes or across multiple nodes with MPI or NCCL, GPU access inside containers, squashfs image migration, the brics/nccl or brics/apptainer-multi-node modules, using NGC (Nvidia GPU Cloud) containers on Isambard, or getting full Slingshot 11 interconnect bandwidth from containerised workloads. Also trigger for questions about aarch64-compatible container images, --fakeroot builds, the /host/adapt.sh entrypoint, or any container-related workflow on an HPE Cray system.
/cudaGuide for using GPUs and CUDA on Isambard AI (BriCS) supercomputers (Isambard-AI Phase 1 and Phase 2, which have NVIDIA GH200 Grace Hopper GPUs). Use this skill whenever a user asks about CUDA on Isambard, loading the cudatoolkit or nvhpc modules, compiling CUDA kernels with nvcc, the correct -arch flag for the GH200 (sm_90), CUDA forward compatibility, using a newer CUDA version than the installed driver supports, the NVIDIA HPC SDK on Isambard, NGC container images for GPU workloads, nvidia-smi on compute nodes, or diagnosing CUDA version mismatches. Also trigger for general GPU programming setup questions on Isambard, even if the user doesn't say "CUDA" explicitly. Note: GPUs are only on Isambard-AI (Phase 1 and Phase 2) — not Isambard 3.
/data-transferGuide for transferring data to, from, and between BriCS Isambard facilities (Isambard-AI Phase 1, Isambard-AI Phase 2, Isambard 3). Covers the standard scp/rsync-over-SSH workflow (including clifton for project-to-project transfers and submitting large transfers as Slurm jobs) and the early-access data mover service (S3-compatible staging storage accessed via rclone or AWS CLI, with Netham for temporary credentials). Use this skill whenever a user asks how to copy, upload, download, sync, or move files/data to or from Isambard, between projects, or between BriCS clusters, or asks about scp, rsync, tar transfers, the data mover, rclone, AWS CLI, Netham, or S3 staging buckets on Isambard — even if the user doesn't name a specific tool.
/getting-supportGuidance on how to get help with Isambard-AI and Isambard 3, including when and how to raise a support ticket on the BriCS helpdesk, checking service status and known issues first, and what to include in a ticket. Use this skill whenever a user hits an error or blocker on Isambard, asks how to contact support, report a bug, request help, or check for an outage, or before telling a user to "raise a ticket" or "contact support".
/modulesGuide for using the modules system, programming environments, compilers, and profiling tools on Isambard AI (BriCS) supercomputers (Isambard-AI and Isambard 3). Use this skill whenever a user asks about loading modules on Isambard, the Cray Programming Environment (PrgEnv-gnu, PrgEnv-cray), compiler wrappers (cc, CC, ftn), GCC or NVIDIA compilers, compiler flags for Arm/Grace (neoverse-v2), BriCS-supplied modules (brics/nccl, brics/tmux, etc.), profiling with gprof, Cray perftools, or Nvidia Nsight Systems. Also trigger for questions about linking MPI or scientific libraries on Isambard, or troubleshooting compiler and build issues on the Cray HPE system — even if the user doesn't explicitly say "modules".
npx claudepluginhub isambard-sc/skills.isambard.ac.uk --plugin isambardOther plugins' skills for the same job