-
Notifications
You must be signed in to change notification settings - Fork 858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--hostfile option not working as expected #12574
Comments
Yes, that is exactly as it should do. I'd suggest reading the hostfile documentation - it explains all this and provides examples. |
Sorry, maybe I should have been clearer. Running mpi with 2 hosts in the hostfile, and setting Is this behaviour expected? If so, is there a way I can use |
No, that expectation is not correct. You really should read the hostfile doc - we spent quite a bit of time on it to ensure it clearly explained all this.
Sure - but the precise syntax depends on which OMPI version you are using (which you haven't told us). You might want to try |
Ah thanks, found it. In case someone runs into this issue, I was able to solve this issue in two ways - by either adding |
Running
mpirun --hostfile hosts -np 2 hostname
, both the processes are executed on the same host, and none on the other. I did verify that the hostfile is being detected (mpirun crashed when I deleted the file).My
hosts
file looks like,Weirdly enough, if I add duplicate the 2 entries in the host file, making the total of 4, then running
mpirun -np 4
runs 2 processes per host.I'm running Ubuntu 22.04 on both machines, and they're accessible to each other via ssh (without any credentials).
The text was updated successfully, but these errors were encountered: