Skip to content

Can't replace doMPI with doFuture #536

Answered by HenrikBengtsson
damonbayer asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for reporting. I've found MPI to be very picky and sensitive to the local setup. It's not unlikely that doMPI got more love than the MPI backend from parallel w/ Rmpi over the years, and therefore works better in more cases.

Having said that, let's leave out the future framework for now, and see if even the following works for you:

library(parallel)
cl <- parallel::makeCluster(2L, type="MPI")

info <- parLapply(cl, X=seq_along(cl), fun=function(i) {
  data.frame(i=i, pid=Sys.getpid())
})
info <- do.call(rbind, info)
print(info)

Also, what's your sessionInfo() after loading all packages of interest.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@damonbayer
Comment options

@HenrikBengtsson
Comment options

Answer selected by damonbayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants