slurm-gpu

Parse sinfo output to map GPU resources across Slurm cluster partitions.

1|Updated Jul 14, 2026
One-click install
npx skills add https://github.com/TzJ2006/gadget --skill slurm-gpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slurm-gpu
Source: https://github.com/TzJ2006/gadget/tree/main/skills/slurm-gpu
Command: npx skills add https://github.com/TzJ2006/gadget --skill slurm-gpu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and map GPU resources across a Slurm cluster by parsing sinfo output and current allocations.

Core Features & Use Cases

  • Inventory GPUs by type and partition using sinfo
  • Determine idle/allocated/mixed states, with per-node detail from squeue
  • Filter results with --free or --partition to support submission decisions

Quick Start

Run /slurm-gpu to view current GPU availability and partitions across the cluster.

Frequently Asked Questions about slurm-gpu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check available GPU resources across a Slurm cluster?

To check available GPU resources across a Slurm cluster, you can parse sinfo output and current allocations. This identifies idle, allocated, mixed, and down states to produce a structured report of per-node and per-partition GPU details.

How does Slurm determine idle versus mixed GPU states for cluster monitoring?

Slurm cluster monitoring determines GPU states by parsing sinfo output alongside current squeue allocations. It evaluates nodes to distinguish between idle, alloc, mix, and down states, returning detailed per-node GPU availability.

Can I filter Slurm GPU outputs to only show free GPUs in specific partitions?

Yes, you can filter Slurm GPU outputs to show free GPUs in specific partitions. Applying filters like --free or --partition refines the structured report, directly supporting job submission decisions and resource planning.

Does this GPU cluster monitoring approach require write access to the Slurm scheduler?

No, this GPU cluster monitoring approach does not require write access to the Slurm scheduler. The tool operates in read-only mode, validates Slurm availability, and safely parses sinfo and squeue outputs without modifying resource allocations.

What is the best way to inventory GPUs by type and partition using Slurm?

The best way to inventory GPUs by type and partition using Slurm is parsing sinfo output and current squeue allocations. This approach maps GPU resources across the cluster, detailing idle and allocated states per node.

Why does my Slurm GPU report show mixed states instead of fully idle resources?

Slurm GPU reports show mixed states instead of fully idle resources when a node has some GPUs allocated while others remain free. The tool handles idle, alloc, mix, and down states to accurately reflect current cluster allocations.