Run Hydra (mpiexec) locally gives strange SSH error

倖福魔咒の 提交于 2019-12-24 01:47:23

问题


I am trying to run example code from this question: MPI basic example doesn't work but when I do:

$ mpirun -np 2 mpi_test

I get this:

ssh: Could not resolve hostname wvxvw-laptop: Name or service not known

And then the program hangs until interrupted.

wvxvw-laptop is the "host name" of my laptop, which is just that, really, a laptopt...

All I want is to try to run the example code, not to set up a network cluster or anything like that.

What did I miss? I'm reading the wiki page http://wiki.mpich.org/mpich/index.php/Using_the_Hydra_Process_Manager but I can't understand what is the reason.

Sorry, I'm very new to this.


Some more verbose output:

/usr/bin/ssh -x wvxvw-laptop "/usr/lib64/mpich/bin/hydra_pmi_proxy" \
--control-port wvxvw-laptop:54320 --debug --rmk user --launcher ssh \
--demux poll --pgid 0 --retries 10 --usize -2 --proxy-id 0 

Formatted for readability. I'm not quite sure why is this even supposed to work (I've never used ssh -x not sure what it is supposed to do :/


回答1:


mpirun execute your program on all node registered on your mpi cluster. MPI use the computer name so you can edit your /etc/hosts to add an entry for wvxvw-laptop



来源:https://stackoverflow.com/questions/19870394/run-hydra-mpiexec-locally-gives-strange-ssh-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!