/hpc-assistant-skills:frontier-slurm-job-managementfrom hpc-assistant-skills
Submits, monitors, and debugs Slurm jobs on the Frontier supercomputer, covering partitions, GPU binding, account setup, and common failure modes.
Ships in hpc-assistant-skills. 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; scripts run unread.
Frontier uses Slurm. A compute node has 4 AMD MI250X accelerators, each with 2 GPU compute dies (GCDs), so 8 logical GPUs with 64 GB HBM2E each, plus 512 GB host memory. By default 8 of the 64 CPU cores are reserved for the system, leaving 56 application cores. Containers run with Apptainer.
Every job must be charged to an OLCF project account. Find yours with showusage or on myOLCF; id/groups show Unix groups, which are not necessarily valid charge accounts. The project directory name can differ in case from the account, so keep PROJECT_DIR separate from PROJECT.
showusage
sbatch --account="$PROJECT" job.sh
Shell variables are not expanded in #SBATCH lines, so either write the account literally (#SBATCH --account=abc123) or pass it on the command line as the examples here do. SBATCH_ACCOUNT and SALLOC_ACCOUNT can set a default.
Use batch for production and extended for smaller long-running jobs. debug is a QOS on batch, not a partition. Development nodes need both --partition=service --qos=develop. Frontier has no sub-node partitions. See references/partitions.md.
srun -N1 -n8 -c7 --gpus-per-task=1 --gpu-bind=closest. Give the total task count explicitly; the guide lists a known issue with relying only on --ntasks-per-node.ROCR_VISIBLE_DEVICES=$SLURM_LOCALID; the closest mapping is not in local-rank order.-S 0 frees the reserved cores but OLCF does not recommend it.MPICH_GPU_SUPPORT_ENABLED=1 for GPU-aware MPI (requires a build against Cray MPICH with GPU support).rocm-smi (e.g. rocm-smi --showtoponuma) inside a compute allocation; check module avail rocm for versions.sbatch --account="$PROJECT" job.sh
squeue --me
squeue --me --start
scontrol show job <job_id>
scancel <job_id>
sinfo -s
sacct --starttime=today
ST: PD = pending, R = running. Last column = reason (e.g. Priority, Resources, dependency, QOS limit).
#!/bin/bash), then all #SBATCH directives before any commandmodule load, exports), cd to an Orion work directorysrun to run the applicationTime: hh:mm:ss or d-hh:mm:ss, within the partition and node-count limits. Requeue: --no-requeue to disable; --open-mode=append to keep earlier output; SLURM_RESTART_COUNT in the script. Email: supported via --mail-user and --mail-type=END,FAIL.
#!/bin/bash
#SBATCH --job-name=frontier-smoke
#SBATCH --partition=batch
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=00:05:00
#SBATCH --output=%x-%j.out
set -euo pipefail
cd "${SLURM_SUBMIT_DIR:?}"
srun -N1 -n1 hostname
Submit with sbatch --account="$PROJECT" job.sh. For full-node MPI, single-GCD, container, Python, array, and PyTorch examples see references/examples.md.
Apptainer is available (check apptainer --version). Bind Orion work paths with --bind:
srun -N1 -n1 apptainer exec --bind "$WORKDIR:$WORKDIR" "$IMAGE" /bin/hostname
For GPU and MPI inside containers, OLCF provides the experimental modules olcf-container-tools, apptainer-enable-mpi, and apptainer-enable-gpu. Load them when running containers, not for apptainer build. The image's MPI must be ABI-compatible with the host Cray MPICH; see the container guide. Do not use --nv (NVIDIA).
/lustre/orion/PROJECT_DIR/scratch/USER or /lustre/orion/PROJECT_DIR/proj-shared (not backed up, 90-day purge). /ccs/home and /ccs/proj are NFS; avoid heavy job I/O there. See the frontier-resource-management skill.salloc --account="$PROJECT" --partition=service --qos=develop --nodes=1 --time=00:15:00, then srun. Do not append /bin/bash to salloc; the guide warns the shell may then stay on the login node.srun --jobid=<job_id> --overlap -N1 -n1 --pty /bin/bash (shares the job's resources).sbatch --account="$PROJECT" --dependency=afterok:123456 job2.sh (types: after, afterany, afterok, afternotok). Job chaining is not allowed in the debug QOS.--account explicitly.--gpu-bind=closest handle GPU mapping.showusage, myOLCF)sbatch --account="$PROJECT" script.shsqueue --me, logs, sacct (job and step state/exit codes)For monitoring commands and common errors see references/troubleshooting.md.
squeue --me
squeue --me --start
sinfo -p batch
scontrol show partition batch
sacct --starttime=today --format=JobID,JobName,State,ExitCode,Elapsed,AllocNodes
Run python3 scripts/validate.py to check links, frontmatter, and bash syntax in both Frontier skills. templates/gpu-smoke.sbatch is a one-node, eight-GCD GPU smoke test (see references/examples.md).
Frontier, AMD MI250X, and Slurm documentation: references/resources.md.
references/examples.md (opens in a new tab)references/partitions.md (opens in a new tab)references/resources.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/gpu_smoke.py (opens in a new tab)scripts/validate.py (opens in a new tab)templates/gpu-smoke.sbatch (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub silogen/hpc-assistant --plugin hpc-assistant-skills8 skills in this plugin
/energy-profilingUse when profiling GPU job energy or power consumption on AMD systems with Omnistat. Handles Omnistat/VictoriaMetrics setup, Slurm job instrumentation, report-card interpretation, and troubleshooting. Covers LUMI and Frontier. Do NOT use for rocprofv3 kernel/API performance profiling./frontier-frequency-power-cappingUse when running GPU frequency-cap or power-cap experiments on Frontier (AMD MI250X). Covers the power cap in the job header (#SBATCH --gpu-power-cap, one job per cap), the max frequency changed at runtime with /usr/bin/set_gpu_max_sclk, the sclk min/max range (#SBATCH --gpu-srange), checking which caps were applied, sysfs/pm_counters telemetry, sweep planning and submission, and runtime/energy/EDP analysis. Do NOT use for rocprofv3 kernel profiling (profiling) or general Omnistat setup (energy-profiling)./frontier-resource-managementCheck Frontier allocations, storage, and project access./geak-optimizationInstall and run GEAK (GPU Energy-Aware Kernel optimizer) on HPC clusters with AMD Instinct GPUs. Covers kernel_workflow (single kernel) and e2e_workflow (whole-model serving). Use only when the user explicitly asks for GEAK, kernel_workflow, e2e_workflow, or to submit a kernel or model to the GEAK optimizer. Do not use for ordinary rocprof, HIP, or Triton performance advice./lumi-resource-managementCheck LUMI project quotas and allocations using lumi-workspaces, lumi-quota, lumi-allocations, lumi-check-quota, lumi-ldap-userinfo, and lumi-ldap-projectinfo. Use when the user asks about quota, billing units, allocations, or project/user info on LUMI./lumi-slurm-job-managementSubmits and manages jobs on LUMI via Slurm (sbatch, srun, squeue, scancel, sinfo). Covers project account, partitions, LUMI-G (AMD MI250x, 8 GPUs/node), Singularity/Apptainer, and Python and PyTorch jobs. Use when the user mentions LUMI, Slurm, partitions, project account, LUMI-G, MI250x, container jobs, or Python jobs on LUMI.Other plugins' skills for the same job