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

mpirun vs mpiexec

Ronald_G_2
Beginner
1,584 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
1,584 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.

Reply