OpenMPI (mpirun) Keyboard Shortcuts

Complete OpenMPI (mpirun) keyboard shortcuts and commands reference — 12 shortcuts across 2 categories. Quick reference cheat sheet for Windows & Mac.

About OpenMPI (mpirun)

OpenMPI (mpirun) is a popular high-performance computing (HPC) communication library used by professionals worldwide. Learning keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.

This page covers all 12 OpenMPI (mpirun) shortcuts across 2 categories: Launching, Environment & Debugging. Each shortcut includes a description to help you understand when and how to use it effectively.

Launching (6)

ShortcutActionDescription
mpirun -n 4 ./progRun N processesLaunch 4 copies of the program across the allocated resources.
--hostfile hosts.txtHost fileSpecify a file listing hosts and slot counts to run on.
-H host1,host2Host listComma-delimited list of hosts to launch processes on directly.
-N 4Processes per nodeLaunch 4 processes on each allocated node (synonym: --npernode).
--map-by nodeMapping policyDistribute processes round-robin across nodes instead of filling one node first.
--bind-to coreCPU bindingBind each process to a specific CPU core for consistent performance.

Environment & Debugging (6)

ShortcutActionDescription
-x VARExport env variableExport an environment variable from the launching shell to every process.
--mca key valueSet MCA parameterPass a Modular Component Architecture parameter to tune Open MPI's behavior.
--allow-run-as-rootAllow rootPermit mpirun to launch as the root user; discouraged outside containers.
--display-mapShow process mapPrint the mapped location of every process before launch, useful for debugging placement.
--oversubscribeOversubscribeAllow launching more processes than available CPU slots.
-VVersionPrint the Open MPI version and exit.
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Frequently Asked Questions

What are the most useful OpenMPI (mpirun) keyboard shortcuts?

The most essential OpenMPI (mpirun) shortcuts are: mpirun -n 4 ./prog (Run N processes), --hostfile hosts.txt (Host file), -H host1,host2 (Host list). These cover the most frequent actions and can significantly speed up your workflow.

How many keyboard shortcuts does OpenMPI (mpirun) have?

OpenMPI (mpirun) has 12 keyboard shortcuts across 2 categories on shortcut-tools.com.

How do I use OpenMPI (mpirun) commands?

These are command-line commands — type them in your terminal or console. Combine them with shell history search (Ctrl + R) and aliases to work even faster.

What is the OpenMPI (mpirun) shortcut for run n processes?

The OpenMPI (mpirun) shortcut for run n processes is mpirun -n 4 ./prog. Launch 4 copies of the program across the allocated resources.

💡 Pro Tips for OpenMPI (mpirun) Users

Start with the essentials: Learn mpirun -n 4 ./prog (Run N processes) and --hostfile hosts.txt (Host file) first — these are the most commonly used.

Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.

Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Launching category first.

CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.

Related Shortcut Pages

NCCL Tests OSU Micro-Benchmarks Intel MPI Benchmarks (IMB) HPL (Linpack) Slurm torchrun Mellanox / InfiniBand NVIDIA DCGM nvidia-smi (GPU)

Search 4,100+ shortcuts across 260 platforms

Explore All Platforms Practice Shortcuts