使用MPI在多个节点上启动ipyparallel集群

时间:2017-11-12 05:26:53

标签: ipython mpi cluster-computing ipython-parallel

我正在尝试使用MPI启动ipyparallel集群。

ipcluster_config按如下方式修改了以下行:

c.MPILauncher.mpi_cmd = ['mpiexec']
c.MPIControllerLauncher.controller_args = ['--ip=*']
c.MPILauncher.mpi_args = ["-machinefile", "~/mpi_hosts"]

ipcontroller_config.py配置如下:

c.HubFactory.engine_ip = '*'
c.HubFactory.ip = '*'
c.HubFactory.client_ip = '*'

但是,当我使用命令启动集群时 ipcluster start --profile mpi -n 2 它失败并显示以下消息

Engines shutdown early, they probably failed to connect.
You can set this by adding "--ip='*'" to your ControllerLauncher.controller_args

不确定如何进一步调试。

0 个答案:

没有答案
相关问题