LinuxCommandLibrary

mpirun

launches MPI parallel programs

TLDR

Run MPI program

$ mpirun -np [4] [program]
copy
Run on multiple hosts
$ mpirun -np [8] --hostfile [hosts.txt] [program]
copy
Run with specific slots per host
$ mpirun -np [4] --map-by node [program]
copy

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.

SEE ALSO

mpiexec(1), mpicc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community