pmodels / mpich

Official MPICH Repository
http://www.mpich.org
Other
541 stars 280 forks source link

Is it possible to specify the SSH port as 30001 when executing mpiexec? #7127

Closed Garen2994 closed 3 weeks ago

Garen2994 commented 1 month ago

We are using MPICH 4.0 to launch processes on multiple hosts through a main process, but these hosts are containers on different nodes. To avoid conflicts, we have modified the SSH service port of each container to 30001. However, when executing mpiexec on the main process, how should we specify the SSH port to be used? The -hosts parameter only accepts the host list. Could you please provide a solution? Thank you very much!

hzhou commented 4 weeks ago

You can use env variable HYDRA_LAUNCHER_EXTRA_ARGS to set extra ssh options, e.g. -p 30001.

Garen2994 commented 4 weeks ago

You can use env variable HYDRA_LAUNCHER_EXTRA_ARGS to set extra ssh options, e.g. -p 30001.

Thanks! This worked.