在本地运行Hydra(mpiexec)会产生奇怪的SSH错误 [英] Run Hydra (mpiexec) locally gives strange SSH error
问题描述
我正在尝试从以下问题运行示例代码: MPI基本示例不起作用,但是当我这样做时:
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
我明白了:
ssh: Could not resolve hostname wvxvw-laptop: Name or service not known
然后程序挂起,直到被中断.
And then the program hangs until interrupted.
wvxvw-laptop
是我的笔记本电脑的主机名",实际上就是一台笔记本电脑...
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.
我想念什么?我正在阅读Wiki页面 http://wiki.mpich.org/mpich/index .php/Using_the_Hydra_Process_Manager ,但我不明白是什么原因.
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.
更多详细输出:
/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
经过格式化以提高可读性.我不太确定为什么这应该行得通(我从未用过ssh -x
不确定应该做什么:/
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 :/
推荐答案
mpirun在mpi群集上注册的所有节点上执行程序. MPI使用计算机名称,因此您可以编辑/etc/hosts以添加wvxvw-laptop条目
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
这篇关于在本地运行Hydra(mpiexec)会产生奇怪的SSH错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!