hpc-mpi
Build, review, debug, and launch MPI-based applications across Open MPI, MPICH-family, Intel MPI, MVAPICH2, and scheduler-integrated runtimes. Use when working with `mpirun` or `mpiexec` or `srun`, wrapper compilers such as `mpicc`, rank or thread geometry, process binding, PMI or PMIx integration, or MPI build and runtime failures.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- hpc-mpi
- risk
- low
- domain
- high-performance-computing
- source
- { "commit": "4ea8069188", "license": "MIT", "repository": "SciMate-AI/HPC-Skills", "imported_at": "2026-09-20" }
- license
- MIT
- version
- 1.0.0
- category
- high-performance-computing
- platforms
- [ "claude-code", "cursor", "codex", "gemini", "antigravity", "copilot" ]
- subdomain
- general
- description
- Build, review, debug, and launch MPI-based applications across Open MPI, MPICH-family, Intel MPI, MVAPICH2, and scheduler-integrated runtimes. Use when working with `mpirun` or `mpiexec` or `srun`, wrapper compilers such as `mpicc`, rank or thread geometry, process binding, PMI or PMIx integration, or MPI build and runtime failures.
02 资源文件 12
- 脚本assets/templates/mpi_compile_example.sh156 B
- 脚本assets/templates/mpi_hello_slurm.sh393 B
- 资产文件assets/templates/mpi_hello_world.c282 B
- 脚本assets/templates/mpi_hybrid_slurm.sh422 B
- 参考文档references/error-pattern-dictionary.md1.1 KB
- 参考文档references/launcher-semantics.md1.2 KB
- 参考文档references/mpi-implementation-matrix.md1.6 KB
- 参考文档references/pmi-pmix-and-environment-propagation.md1.2 KB
- 参考文档references/rank-thread-binding-matrix.md1.2 KB
- 参考文档references/runtime-debugging-and-observability.md1.3 KB
- 参考文档references/scheduler-integration-playbook.md965 B
- 参考文档references/wrapper-compilers-and-build.md1.2 KB
03 SKILL.md 正文
HPC MPI
Treat MPI as a three-layer surface: implementation choice, build or wrapper semantics, and launcher behavior inside the target scheduler.
Start
- Read
references/mpi-implementation-matrix.mdbefore choosing or repairing an MPI stack. - Read
references/launcher-semantics.mdwhen deciding betweensrun,mpirun,mpiexec, Hydra, or a site wrapper. - Read
references/wrapper-compilers-and-build.mdwhen compiling withmpiccormpicxxormpifort, linking dependencies, or mixing MPI and non-MPI toolchains. - Read
references/rank-thread-binding-matrix.mdwhen selecting MPI rank counts, OpenMP threads, affinity, or NUMA placement. - Read
references/pmi-pmix-and-environment-propagation.mdwhen PMI or PMIx integration, environment forwarding, or batch-shell drift is in doubt. - Read
references/scheduler-integration-playbook.mdwhen launching under Slurm, PBS, or LSF. - Read
references/runtime-debugging-and-observability.mdwhen ranks hang, crash, oversubscribe, or report inconsistent environment state. - Read
references/error-pattern-dictionary.mdwhen an MPI build or runtime failure needs a fast pattern match.
Work sequence
- Identify the active MPI family first:
- Open MPI
- MPICH or Hydra-derived stack
- Intel MPI
- MVAPICH2
- site-specific wrapper around one of those families
- Keep compiler wrappers and runtime launcher from the same stack.
- Decide whether the scheduler should launch ranks directly or whether the MPI launcher should do it.
- Make rank count, CPUs per rank,
OMP_NUM_THREADS, and binding policy mutually consistent. - Reproduce failures on the smallest rank count that still shows the issue before scaling back out.
Guardrails
- Do not mix
mpiccfrom one MPI stack withmpirunfrom another. - Do not assume
mpirunandsrunare 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.
Additional References
Load these on demand:
references/mpi-implementation-matrix.mdfor family selection and compatibility boundariesreferences/launcher-semantics.mdfor launcher-specific expectations and scheduler handoffreferences/wrapper-compilers-and-build.mdfor compiler-wrapper usage and link hygienereferences/rank-thread-binding-matrix.mdfor affinity and hybrid MPI plus OpenMP choicesreferences/pmi-pmix-and-environment-propagation.mdfor scheduler handoff, PMI or PMIx expectations, and batch-shell environment propagationreferences/scheduler-integration-playbook.mdfor Slurm or PBS or LSF integration detailreferences/runtime-debugging-and-observability.mdfor hang triage, rank-local logging, and environment inspectionreferences/error-pattern-dictionary.mdfor common MPI failure signatures
Reusable Templates
Use assets/templates/ when a concrete starting point is faster than rebuilding the MPI workflow from scratch, especially:
mpi_hello_world.cmpi_compile_example.shmpi_hello_slurm.shmpi_hybrid_slurm.sh
Outputs
Summarize:
- active MPI family or the ambiguity that still needs to be resolved
- compile and launcher path chosen
- rank or thread or binding geometry
- scheduler integration assumptions
- the exact build or runtime failure class if the workflow is being repaired
04 同仓库更多 Skills
dei-assessment
Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.
dei-action-plan
Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.
culture-fit-assessment
Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.
cowork-to-code-bridge
Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.
counter-offer-response
Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.
continuous-feedback-system
Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.