registerDoMPI {doMPI} | R Documentation |
registerDoMPI
Description
The registerDoMPI
function is used to register doMPI
with the foreach package. Specifically, you register a particular
cluster object which will be used when executing the %dopar% operator.
The cluster object is created using startMPIcluster
.
Usage
registerDoMPI(cl)
Arguments
cl |
The cluster object to use for parallel execution. |
See Also
Examples
## Not run:
# start and register an MPI cluster with two workers:
cl <- startMPIcluster(2)
registerDoMPI(cl)
## End(Not run)
[Package doMPI version 0.2.2 Index]