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

mpiexec -hosts differences in MPICH and Intel MPI

zelenko__yauheni
Beginner
900 Views

What is differences in handling mpiexec -hosts in MPICH and Intel MPI? It seems that Inte MPI doesn't recognize <host>:<number processes> syntax.

0 Kudos
4 Replies
Dmitry_G_Intel
Employee
900 Views

Hi,

Could you please provide full command line and version of Intel MPI?

0 Kudos
zelenko__yauheni
Beginner
900 Views

I tried MPICH 2 1.5 and MPICH 3.3 and Intel MPI 2018.4.

Command line was simple: mpiexec -host "host1:2,host2:2" <cpi> example.

MPICH mpiexec (Hydra) launched 4 processes. Intel MPI mpiexec launched number of CPUs on both hosts processes.

0 Kudos
James_T_Intel
Moderator
900 Views

This is the expected behavior.  Intel® MPI Library does not support this syntax for the -hosts option.  There was no specification for the number of ranks in a recognized manner, therefore the default is to put a number of ranks equal to the number of cores.  In order to achieve your desired behavior, please use the -machinefile <file> option.  The specified file should contain the <host>:<ranks> syntax, with one host per line.

0 Kudos
zelenko__yauheni
Beginner
900 Views

But if Intel MPI mpiexec is based on MPICH Hydra why Hydra's -host syntax could not be supported? I don't think that creating temporary files for -machinefile is better solution then more flexible -hosts.

0 Kudos
Reply