Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.

mpirun vs mpiexec

Ronald_G_2
Beginner
3,540 Views

mpiexec is a direct link to mpiexec.hydra

mpirun is a wrapper script that determines your batch system and simplifies the launch for the user, but eventually also calls mpiexec.hydra

Our site is considering removing the mpiexec link and instead linking it to mpirun.  Can you see any possible downside to doing this?

Ron

0 Kudos
1 Reply
James_S
Employee
3,540 Views

Hi Ronald, the commands mpirun and mpiexec.hydra are interchangeable. You can specify all mpiexec.hydra options with the mpirun command​. However, you are recommended to use the mpirun command when an MPI program is running under a batch scheduler or job manager, as the mpirun command detects if the MPI job is submitted from within a session allocated using a job scheduler like PBS Pro* or LSF*. Thanks.

0 Kudos
Reply