futureverse / futureverse/future.batchtools

setting strategy to mimic rmpi/dompi

Open
#40 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
87
Forks
10
PR merge metrics
No merged PRs in 30d

Description

is there an analogous setting in future::plan for rmpi?

```r
library(parallel)
hello_world <- function() {
## Print the hostname and MPI worker rank.
paste(Sys.info()["nodename"],Rmpi::mpi.comm.rank(), sep = ":")
}

cl <- makeCluster(Sys.getenv()["SLURM_NTASKS"], type = "MPI")
clusterCall(cl, hello_world)
stopCluster(cl)
```

where the plan is set on the workers and the call to slurm/grid is done via bash template.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.