HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mpirun — Execute serial and parallel jobs in Open MPI. See also: `mpic++`. More information: <https://docs.op

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandmpirunandparallelexecutecliserialjobs

Problem

How to use the mpirun command: Execute serial and parallel jobs in Open MPI. See also: mpic++. More information: <https://docs.open-mpi.org/en/main/man-openmpi/man1/mpirun.1.html>.

Solution

mpirun — Execute serial and parallel jobs in Open MPI. See also: mpic++. More information: <https://docs.open-mpi.org/en/main/man-openmpi/man1/mpirun.1.html>.

Execute an Open MPI program:
mpirun {{path/to/executable}}


Execute an Open MPI program with n parallel processes:
mpirun -n {{n}} {{path/to/executable}}


Allow more processes than available physical cores:
mpirun -oversubscribe {{path/to/executable}}

Code Snippets

Execute an Open MPI program

mpirun {{path/to/executable}}

Execute an Open MPI program with `n` parallel processes

mpirun -n {{n}} {{path/to/executable}}

Allow more processes than available physical cores

mpirun -oversubscribe {{path/to/executable}}

Context

tldr-pages: common/mpirun

Revisions (0)

No revisions yet.