Description Usage Arguments See Also Examples
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
.
1 | registerDoMPI(cl)
|
cl |
The cluster object to use for parallel execution. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.