registerDoMPI: registerDoMPI

Description Usage Arguments See Also Examples

View source: R/doMPI.R

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

1

Arguments

cl

The cluster object to use for parallel execution.

See Also

startMPIcluster

Examples

1
2
3
4
5
6
## Not run: 
# start and register an MPI cluster with two workers:
cl <- startMPIcluster(2)
registerDoMPI(cl)

## End(Not run)

doMPI documentation built on May 2, 2019, 1:10 p.m.