/isambard:slurmfrom isambard
Guides submitting, monitoring, and managing HPC jobs with Slurm on Isambard-AI and Isambard 3. Covers sbatch scripts, GPU/CPU requests, job arrays, dependencies, multi-node jobs, partitions, QOS limits, troubleshooting PENDING jobs, and acceptable use policies.
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.
Read when SKILL.md points to them.
Both Isambard-AI and Isambard 3 use the Slurm Workload Manager to schedule jobs on compute nodes. Jobs are submitted to a queue and run when the requested resources become available.
Never poll the queue rapidly. Running
squeueorsinfoin a tight loop (watchwith a short interval, or--iterate) floods the scheduler and slows job scheduling for every user. Minimum polling interval from scripts: 60 seconds. Disruptive polling is a breach of the acceptable use policy and may result in account suspension.
squeue, sinfo, or any scheduler status command in a tight loop.sbatch or launch commands with srun; do not use mpirun
or mpiexec on Isambard.--time, --nodes, and --gpus when applicable.--exclusive only when the workload truly requires an entire node.ampere, hopper and instinct partitions.interactive reservation with
--reservation=interactive only. Never add --partition to the same command —
doing so is Unacceptable Use under the AUP and the job may be cancelled without
warning.| System | GPU resource flag | Cores per node | Notes |
|---|---|---|---|
| Isambard-AI | --gpus=<n> | 72 per GH200 Superchip (4 per node) | 1 GPU = 1 full GH200 Superchip (72 cores + memory) |
| Isambard 3 Grace | — | 144 (2 × 72-core Superchips) | CPU-only; shared between users by default |
| Isambard 3 MACS | GPU partitions only | Varies | x86_64 nodes; not for production workloads |
| System | Partitions (default first) | QoS | Key limits |
|---|---|---|---|
| Isambard-AI Phase 1 | workq | workq_qos, 32gpu_qos | Max 32 GPUs per project |
| Isambard-AI Phase 2 | workq; hidden interactive (via reservation) | workq_qos, interactive_qos | Per user: 256 running jobs, 512 pending + running jobs; max array size 1000 |
| Isambard 3 Grace | grace | grace_qos | Per user: 1000 pending + running jobs (limits under review) |
| Isambard 3 MACS | milan, genoa, berg, spr, sprhbm, ampere (4×A100), hopper (4×H100), instinct (4×MI100) | macs_qos | Per project: max 2 GPUs, 20 pending + running jobs |
Max walltime is 24 hours on all general-purpose partitions; the interactive
reservation allows up to 8 hours. On Isambard-AI Phase 2, a submission that
would exceed a per-user limit is rejected immediately — resubmit once the job count
drops. Limits may be tightened temporarily; check the
service status page. See the
job scheduling page
for current values.
squeue --me # your jobs only
squeue --me --Format="JobID,Name,StateCompact:6,TimeUsed,ReasonList,Dependency:32"
sinfo # partition and node state (general impression only)
sacct # current and recently completed jobs with exit codes
On some BriCS services other users' jobs are not visible in squeue.
Common job states: R = running, PD = pending, CG = completing, F = failed, TO = timed out.
--nodes=1 for single-node jobs. Without it, Slurm may draw GPUs or tasks from multiple nodes.--exclusive as an #SBATCH directive reserves an entire node regardless of actual usage. You are charged for the whole node. Use only when your workload genuinely requires it.sbatch)sbatch my_job.sh
cat my_job.out # output appears here once job completes
Isambard-AI — single GPU job:
#!/bin/bash
#SBATCH --job-name=my_job
#SBATCH --output=my_job.out
#SBATCH --nodes=1
#SBATCH --gpus=1
#SBATCH --time=00:05:00
hostname
nvidia-smi --list-gpus
Isambard 3 Grace — single node job:
#!/bin/bash
#SBATCH --job-name=my_job
#SBATCH --output=my_job.out
#SBATCH --nodes=1
#SBATCH --time=00:05:00
hostname
numactl -s
Always set --time — shorter walltimes usually mean shorter queue waits.
srun)# Run a single command on a compute node
srun --nodes=1 --gpus=1 --time=00:02:00 nvidia-smi --list-gpus
# Start an interactive shell (job ends when you close the terminal)
srun --nodes=1 --gpus=1 --time=00:15:00 --pty /bin/bash --login
interactive reservation (Isambard-AI Phase 2)Use for short-lived debugging, development or exploratory work that needs a compute node without waiting in the normal queue:
srun --gpus=1 --reservation=interactive --pty bash -i
squeue --me --partition=interactive # reservation jobs are hidden from plain squeue --me
--partition. Never use it for long-running or high-throughput work.See references/advanced.md for details.
# Inside a batch script: 4 tasks, one per GPU
#SBATCH --gpus=4
#SBATCH --ntasks-per-gpu=1
srun python3 myscript.py
# Concurrent independent job steps
srun --ntasks=1 --gpus=1 --exclusive step_a &
srun --ntasks=1 --gpus=1 --exclusive step_b &
wait
--exclusive on srun (not #SBATCH) prevents steps from over-subscribing the allocation
and allows them to run concurrently. This is the safe use of --exclusive.
#SBATCH --array=1-4 # tasks 1, 2, 3, 4
#SBATCH --output=my_array_%a.out # %a = task ID
#SBATCH --array=1-100%4 # limit to 4 concurrent tasks
#SBATCH --array=0-90:10 # step: 0, 10, 20 ... 90
# Inside script, task ID is:
echo $SLURM_ARRAY_TASK_ID
Array tasks appear as JOBID_TASKID in squeue. Cancel one task: scancel JOBID_TASKID.
Cancel the whole array: scancel JOBID.
For many short tasks, prefer concurrent
srunsteps in one batch job over a large array — reduces scheduler overhead and avoids exhausting credit reservations.
# Run job2 only after job1 succeeds (exit code 0)
JOBID_1=$(sbatch --parsable job1.sh)
JOBID_2=$(sbatch --parsable --dependency=afterok:${JOBID_1} job2.sh)
# Only one job with this name runs at a time
sbatch --dependency=singleton my_job.sh
sbatch --dependency=singleton my_job.sh # waits for the first to finish
View dependencies: squeue --me --Format="JobID,Name,StateCompact:6,ReasonList,Dependency:32"
Other types: afterany (regardless of exit code), afternotok (only if failed). See the sbatch man page.
scancel <JOBID> # cancel a job or array task
scancel <JOBID_TASKID> # cancel one array task
scancel --me # cancel all your jobs
See references/advanced.md for full detail on:
sacct for job history and exit codessrun --jobid --overlap)--nodes, --gpus-per-node, --ntasks-per-node)--ntasks-per-node, --cpus-per-task, OMP_NUM_THREADS)salloc) and the Phase 2 interactive reservation--time-min, --nodes range)--exclusive at the job level — when it's needed and what it costssacctmgr, and allocation limit errorsSLURM_RESTART_COUNTRead this file when helping with any of these topics.
See references/troubleshooting.md for a full symptom → cause → fix reference covering:
QOS policy, Invalid GRES, node configuration not available, invalid account)Priority, None, Dependency, PartitionTimeLimit, ReqNodeNotAvail, AssocGrpGRESMinutesLimit, JobHoldMaxRequeue)TIMEOUT, OUT_OF_MEMORY, NODE_FAIL, FAILED with non-zero exit code)COMPLETED but results are missing or wrongRead this file when a user is asking why their job won't start, is failing, or is behaving unexpectedly.
| Goal | Command |
|---|---|
| View your jobs | squeue --me |
| Check job history + exit codes | sacct |
| Submit batch job | sbatch my_job.sh |
| Interactive command | srun --nodes=1 --gpus=1 --time=00:05:00 <cmd> |
| Interactive shell | srun --nodes=1 --gpus=1 --time=00:15:00 --pty /bin/bash --login |
| Reserve allocation | salloc --nodes=1 --gpus=1 --time=00:10:00 |
| Interactive shell (Phase 2 reservation) | srun --gpus=1 --reservation=interactive --pty bash -i |
| List reservation jobs | squeue --me --partition=interactive |
| Cancel job | scancel <JOBID> |
| Cancel all my jobs | scancel --me |
| Chain jobs | sbatch --parsable + --dependency=afterok:<ID> |
| Limit array concurrency | --array=1-100%4 |
| Attach to running job | srun --jobid=<ID> --overlap --pty /bin/bash -l |
| Check QOS limits | sacctmgr show qos workq_qos |
| Check my accounts | sacctmgr show user $(whoami) withassoc |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub isambard-sc/skills.isambard.ac.uk --plugin isambard11 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".
Other plugins' skills for the same job