Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel::makeCluster(type="FORK") fails with later attached #148

Closed
jzhangc opened this issue May 18, 2021 · 1 comment · Fixed by #149
Closed

parallel::makeCluster(type="FORK") fails with later attached #148

jzhangc opened this issue May 18, 2021 · 1 comment · Fixed by #149

Comments

@jzhangc
Copy link

jzhangc commented May 18, 2021

Whenever later is attached, the FORK type makeCluster will fail. PSOCK works.

library(later)
library(parallel)
cl <- makeCluster(2, type = "FORK")

Error message:

Error in makeForkCluster(nnodes = spec, ...) : Cluster setup failed.
In addition: Warning message:
In socketAccept(socket = socket, blocking = TRUE, open = "a+b", :
problem in accepting connections on this socket

Session Info:

R version 4.0.5 (2021-03-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] later_1.2.0
loaded via a namespace (and not attached):
[1] compiler_4.0.5 cli_2.5.0 tools_4.0.5 Rcpp_1.0.6 rlang_0.4.11

@wch
Copy link
Member

wch commented May 18, 2021

Using git bisect, it looks like this was introduced by b7ec34c, which was part of #141.

@jzhangc jzhangc changed the title parallel::makeCluster(type="FORK") fail with later attached parallel::makeCluster(type="FORK") fails with later attached May 18, 2021
@wch wch closed this as completed in #149 May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants