【问题标题】:mpirun hangs when connected to wifi连接到 wifi 时 mpirun 挂起
【发布时间】:2015-08-23 01:20:42
【问题描述】:

我在我的 Mac OSX 10.9 上运行 mpirun (Open MPI) 1.8.5,但是当我尝试时

mpirun -np 4 run.exe

终端只是挂起,最终我收到一条错误消息

A process or daemon was unable to complete a TCP connection to another process: Local host: my_computer_name Remote host: 10.0.0.15 This is usually caused by a firewall on the remote host. Please check that any firewall (e.g., iptables) has been disabled and try again.

现在,如果我关闭 Wifi,一切正常。另外,我没有启用任何防火墙。每次我需要运行 mpi 时都必须关闭我的 wifi 真的很烦人。有什么想法吗?

【问题讨论】:

  • 尝试显式设置主机文件。
  • 你能举个例子吗?我对网络上的说明感到困惑。
  • open-mpi.org/faq/?category=running#mpirun-hostfile 就是一个很好的例子。我不能做得更好。
  • 谢谢。我添加了我的主机名,当我使用 wifi 时它仍然挂起。我做mpirun -np 4 --hostfile my_host_file run.exe,但仍然没有运气。当然,当我关闭 wifi 时,它工作正常。
  • 您使用的是 IP 地址、DNS 主机名还是 localhost?

标签: mpi osx-mavericks openmpi


【解决方案1】:

this question and its answers。您需要明确告诉 MPI 不要使用 wifi,然后它会在禁用 wifi 时继续存在。

发生的事情是,MPI greedily uses all IP networks it can muster, 因此,当您禁用 wifi 时,MPI 会丢失它使用的 IP 连接之一。

【讨论】:

    猜你喜欢
    • 2020-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-17
    • 1970-01-01
    • 2014-03-16
    • 2013-08-09
    • 2015-06-22
    相关资源
    最近更新 更多