hpc-mpi

hpc-mpi is a skill for Codex from SciMate-AI/HPC-Skills. It costs 89 tokens per session (879 once invoked), scanned A, original, MIT.

Guidance for building, debugging, and running MPI applications across common MPI implementations and cluster schedulers. MPI is a system that lets processes on one or more computers exchange data during a program's execution.

In plain words
What is it for?
Use it for mpirun, mpiexec, srun, MPI wrapper compilers, rank and thread placement, CPU binding, Slurm/PBS/LSF jobs, PMI or PMIx setup, and hangs or crashes.
Why use it?
MPI problems can come from the library, compiler wrappers, launcher, scheduler, process placement, or environment settings. The guidance helps separate and check those layers.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for mpirun, mpiexec, srun, MPI wrapper compilers, rank and thread placement, CPU binding, Slurm/PBS/LSF jobs, PMI or PMIx setup, and hangs or crashes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scimate-ai/hpc-skills/hpc-mpi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SciMate-AI/HPC-Skills --skill hpc-mpi
Clone the repo
git clone --depth 1 https://github.com/SciMate-AI/HPC-Skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hpc-mpi

README.md
[![agentmods](https://agentmods.dev/badge/skills/scimate-ai/hpc-skills/hpc-mpi/github.svg)](https://agentmods.dev/skills/scimate-ai/hpc-skills/hpc-mpi)
Your own site
<a href="https://agentmods.dev/skills/scimate-ai/hpc-skills/hpc-mpi"><img src="https://agentmods.dev/badge/skills/scimate-ai/hpc-skills/hpc-mpi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hpc-mpi

Your own site · 80×15
<a href="https://agentmods.dev/skills/scimate-ai/hpc-skills/hpc-mpi"><img src="https://agentmods.dev/badge/skills/scimate-ai/hpc-skills/hpc-mpi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 879 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.00879
Opus 5 $0.00044 $0.00439
Sonnet 5 $0.00018 $0.00176
Haiku 4.5 $0.00009 $0.00088

Measured 11d ago against content hash 780e70580836, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

hpc-mpi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (assets/templates/mpi_compile_example.sh, assets/templates/mpi_hello_slurm.sh, assets/templates/mpi_hybrid_slurm.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hpc-mpi/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HPC MPI

Treat MPI as a three-layer surface: implementation choice, build or wrapper semantics, and launcher behavior inside the target scheduler.

Start

  1. Read references/mpi-implementation-matrix.md before choosing or repairing an MPI stack.
  2. Read references/launcher-semantics.md when deciding between srun, mpirun, mpiexec, Hydra, or a site wrapper.
  3. Read references/wrapper-compilers-and-build.md when compiling with mpicc or mpicxx or mpifort, linking dependencies, or mixing MPI and non-MPI toolchains.
  4. Read references/rank-thread-binding-matrix.md when selecting MPI rank counts, OpenMP threads, affinity, or NUMA placement.
  5. Read references/pmi-pmix-and-environment-propagation.md when PMI or PMIx integration, environment forwarding, or batch-shell drift is in doubt.
  6. Read references/scheduler-integration-playbook.md when launching under Slurm, PBS, or LSF.
  7. Read references/runtime-debugging-and-observability.md when ranks hang, crash, oversubscribe, or report inconsistent environment state.
  8. Read references/error-pattern-dictionary.md when an MPI build or runtime failure needs a fast pattern match.

Work sequence

  1. Identify the active MPI family first:
    • Open MPI
    • MPICH or Hydra-derived stack
    • Intel MPI
    • MVAPICH2
    • site-specific wrapper around one of those families
  2. Keep compiler wrappers and runtime launcher from the same stack.
  3. Decide whether the scheduler should launch ranks directly or whether the MPI launcher should do it.
  4. Make rank count, CPUs per rank, OMP_NUM_THREADS, and binding policy mutually consistent.
  5. Reproduce failures on the smallest rank count that still shows the issue before scaling back out.

Guardrails

  • Do not mix mpicc from one MPI stack with mpirun from another.
  • Do not assume mpirun and srun are interchangeable on a managed cluster.
  • Do not tune binding or transport variables before confirming the rank geometry is coherent.
  • Do not debug collectives or hangs at production scale first when a two-rank or four-rank reproduction is possible.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 72 lines · 89 tokens per session scan A 780e70580836

Subscribe to this mod's changes

hpc-mpi is a skill published in the GitHub repository SciMate-AI/HPC-Skills (86 stars, last pushed 5mo ago), licensed MIT. It adds 89 tokens to every session and 879 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.