Intel® MPI Library Developer Reference for Linux* OS

ID 768732
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

mpirun

Launches an MPI job and provides integration with job schedulers.

Syntax

mpirun <options>

Arguments

<options> mpiexec.hydra options as described in the mpiexec.hydra section. This is the default operation mode.

Description

Use this command to launch an MPI job. The mpirun command uses Hydra as the underlying process manager.

The mpirun command detects if the MPI job is submitted from within a session allocated using a job scheduler like Torque*, PBS Pro*, LSF*, Parallelnavi* NQS*, Slurm*, Univa* Grid Engine*, or LoadLeveler*. The mpirun command extracts the host list from the respective environment and uses these nodes automatically according to the above scheme.

In this case, you do not need to create a host file. Allocate the session using a job scheduler installed on your system, and use the mpirun command inside this session to run your MPI job.

Example

$ mpirun -n <# of processes> ./myprog

This command invokes the mpiexec.hydra command (Hydra process manager), which launches the myprog executable.