【发布时间】:2018-09-28 14:13:29
【问题描述】:
我在集群上运行 mpi 程序时遇到问题。
我的主机文件如下所示:
10.0.9.1 slots=2
10.0.12.1 slots=2
10.0.11.1 slots=2
10.0.10.1 slots=2
10.0.6.1 slots=2
10.0.5.1 slots=2
10.0.4.1 slots=2
10.0.2.1 slots=2
10.0.1.1 slots=2
如您所见,我有 8 个节点。运行后一些进程结束工作,但其他返回错误:
node02][[62903,1],7][btl_tcp_endpoint.c:796:mca_btl_tcp_endpoint_complete_connect] connect() to 10.1.4.1 failed: No route to host (113)
[node04][[62903,1],15][btl_tcp_endpoint.c:796:mca_btl_tcp_endpoint_complete_connect] connect() to 10.1.5.1 failed: No route to host (113)
我很惊讶 node02 正在尝试连接 10.1.4.1 主机(我没有在主机等中得到这个地址)。 第二个错误与之前的错误类似,这意味着 node4 正在尝试连接 10.1.5.1。我的地址是 10.0.x.1 而不是 10.1.x.1 为什么是这样,我在哪里可以找到它?
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
编辑:
我已经测试了许多配置,我发现我只能在任何节点上运行 10 个程序副本 (-np 10)。任何更大的值,例如 -np 12 都会出现上述错误。
比如节点的配置就ok了:
10.0.11.1 slots=1
10.0.10.1 slots=1
10.0.9.1 slots=1
10.0.6.1 slots=2
10.0.5.1 slots=1
10.0.4.1 slots=2
10.0.2.1 slots=2
你遇到过这样的问题吗?
【问题讨论】: