R Caret并行软件包makeCluster =端口11891无法打开

时间:2019-02-27 02:20:09

标签: r r-caret wine doparallel qubes-os

我在4核Intel-i5上使用Qubes(3.2),并且在Fedora-28 VM中运行

  • R 3.5.2(Linux)平台:x86_64-redhat-linux-gnu(64位)
  • R 3.5.2(Win32 / i386)平台:i386-w64-mingw32 / i386(32位),Wine 4.0

我需要对插入符号包提供多核支持(在Linux-R和Windows / Wine-R中),并且在Linux-R中尝试了以下操作:

library("parallel")
cl <- makeCluster(2)
cl
socket cluster with 2 nodes on host ‘localhost’
showConnections()
description         class      mode  text     isopen   can read can write
3 "<-localhost:11662" "sockconn" "a+b" "binary" "opened" "yes"    "yes"
4 "<-localhost:11662" "sockconn" "a+b" "binary" "opened" "yes"    "yes"

Win / Wine R失败:

library("parallel")
cl <- makeCluster(2)
Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,: 
cannot open connection
In socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  : 
port 11646 cannot be opened
showConnections()
description         class      mode  text     isopen   can read can write
3 "<-localhost:11646" "sockconn" "a+b" "binary" "opened" "yes"    "yes"

如您所见,建立了1个套接字连接,然后出现错误。看来第二个工作线程无法在同一端口上连接,但我还没有发现更多。

我不知道这是否取决于Qubes,Wine,我真的需要帮助...

我已经搜索了2天,并尝试了各种技巧,既没有设置主服务器,也没有手动设置端口或使用其他软件包(doParallel / future)或其他方法起作用。

非常感谢!

0 个答案:

没有答案