/hpc-assistant-skills:lumi-slurm-job-managementfrom hpc-assistant-skills
Submits and manages jobs on LUMI via Slurm (sbatch, srun, squeue, scancel, sinfo). Covers project accounts, partitions, LUMI-G (AMD MI250x, 8 GPUs/node), Singularity/Apptainer containers, and Python/PyTorch jobs.
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.
LUMI uses Slurm as job scheduler and resource manager. GPU nodes (LUMI-G) use AMD MI250x (8 GPUs per node); containers run via Singularity or Apptainer.
You must set your project ID in the job script or on the command line.
lumi-allocations or groups (e.g. project_xxxxxxxxx).#SBATCH --account=project_<<id>>~/.bashrc: export SBATCH_ACCOUNT=project_<<id>> and export SALLOC_ACCOUNT=project_<<id>>Omit --account and you get: Unable to allocate resources: Job violates accounting/QOS policy (job submit limit, user's size and/or time limits).
Main partitions: standard-g / standard (full-node), small-g / small (sub-node GPU/CPU), debug, dev-g, largemem, lumid. See references/partitions.md for limits and purposes.
--gpus or --gpus-per-node (e.g. --gpus-per-node=8), not --gres=gpu:....ROCR_VISIBLE_DEVICES=$SLURM_LOCALID and CPU binding (see references/examples.md). Use rocm-smi --showtoponuma for topology. Set MPICH_GPU_SUPPORT_ENABLED=1 for GPU-aware MPI.sbatch job_script.sh
squeue --me
squeue --me --start
scontrol show job <job_id>
scancel <job_id>
sinfo -p small-g
sacct --starttime=today
ST: PD = pending, R = running. Last column = reason (e.g. Priority, Resources).
#!/bin/bash)#SBATCH directives (name, account, time, nodes, ntasks, cpus-per-task, mem, partition, GPUs if needed)module load, exports)srun to run the applicationTime: hh:mm:ss or d-hh:mm:ss. Requeue: --no-requeue to disable; --open-mode=append to avoid truncated output; SLURM_RESTART_COUNT in script. Email: not supported on LUMI.
Critical SBATCH options: --account, --partition, --time, --gpus/--gpus-per-node. Full list: references/examples.md.
#!/bin/bash
#SBATCH --job-name=exampleJob
#SBATCH --account=project_<<id>>
#SBATCH --time=02:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=2G
#SBATCH --partition=small
module load MyApp/1.2.3
srun myapp -i input -o output
For LUMI-G MPI, small-GPU, container, Python, and PyTorch examples see references/examples.md.
Singularity/Apptainer available (no module load). Bind storage with -B using full path (/scratch/project_xxx, /project/project_xxx) because those paths are symlinks.
srun --partition=small --account=project_xxx \
singularity exec -B /scratch/project_xxx:/scratch/project_xxx \
-B /project/project_xxx:/project/project_xxx \
myimage.sif mycommand
MPI: host MPI (LUMI docs) or srun --mpi=pmi2. Do not use --nv (NVIDIA); for AMD, use ROCm-capable images or bind host ROCm.
/scratch/project_xxx, /project/project_xxxsalloc then srun; or srun --pty bash. Attach to running job: srun -n 1 --overlap --pty --jobid=<job_id> $SHELL (add --gpus=<num> if the job requested GPUs).sbatch --dependency=afterok:123456 job2.sh (types: after, afterany, afterok, afternotok).--account=project_xxx.small/small-g for sub-node jobs.--gpus/--gpus-per-node=8 for full node.select_gpu wrapper and CPU binding (see examples).--open-mode=append and SLURM_RESTART_COUNT for requeues.lumi-allocations / groups)--account, resources; for containers use -B full pathssbatch script.shsqueue --me, logs, sacct/seffFor monitoring commands and common errors see references/troubleshooting.md.
sbatch job.sh
squeue --me
squeue --me --start
scontrol show job <job_id>
scancel <job_id>
sinfo -p small-g
sacct --starttime=today
LUMI and Slurm documentation: references/resources.md.
What SKILL.md sets; muted values are Claude Code's defaults
8 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-managementnpx claudepluginhub silogen/hpc-assistant --plugin hpc-assistant-skillsOther plugins' skills for the same job