mpirun
launches MPI parallel programs
TLDR
Run MPI program
$ mpirun -np [4] [program]
Run on multiple hosts$ mpirun -np [8] --hostfile [hosts.txt] [program]
Run with specific slots per host$ mpirun -np [4] --map-by node [program]
SYNOPSIS
mpirun [options] program [args...]
DESCRIPTION
mpirun launches MPI parallel programs. Starts multiple processes across nodes for distributed computing. Part of OpenMPI or MPICH implementations.
PARAMETERS
-np n
Number of processes.--hostfile file
File with host list.--host hosts
Comma-separated hosts.--map-by policy
Process mapping (node, slot, core).--bind-to policy
Process binding.-x var
Export environment variable.
