R:mpi.spawn.Rslaves()返回超时

时间:2015-11-28 22:59:38

标签: r

我在MacOSX上运行R 3.2.2。我从一开始就安装了Rmpi并且无法正确运行Rmpi。我看过几个博客&这样,但找不到类似的问题。

mpi.spawn.Rslaves()因超时消息而失败...

> library(Rmpi)
> mpi.spawn.Rslaves()
4 slaves are spawned successfully. 0 failed.
[MondoLab-Yoda][[8866,1],0][btl_tcp_endpoint.c:818:mca_btl_tcp_endpoint_complete_connect] connect() to 2620:9b::1932:b692 failed: Operation timed out (60)
编辑:没有真正解决,但安装Open MPI后,我现在可以运行mpi.spawn.Rslaves

我使用该链接安装了Open MPI作为教程:https://wiki.helsinki.fi/display/HUGG/Installing+Open+MPI+on+Mac+OS+X

然后重新安装RMPI

测试代码:

> mpi.spawn.Rslaves()
4 slaves are spawned successfully. 0 failed.
master (rank 0, comm 1) of size 5 is running on: MondoLab-Yoda 
slave1 (rank 1, comm 1) of size 5 is running on: MondoLab-Yoda 
slave2 (rank 2, comm 1) of size 5 is running on: MondoLab-Yoda 
slave3 (rank 3, comm 1) of size 5 is running on: MondoLab-Yoda 
slave4 (rank 4, comm 1) of size 5 is running on: MondoLab-Yoda 

> mpi.remote.exec(sum(1:mpi.comm.rank()))
X1 X2 X3 X4
1  1  3  6 10

0 个答案:

没有答案