Learn R Programming

doMPI (version 0.2.2)

dompiWorkerLoop: Create and start an MPI cluster

Description

The dompiWorkerLoop function is used from a cluster worker to run the worker loop in order to execute worker tasks. This is intended to be used from a doMPI script that is executed in “non-spawn” mode.

Usage

dompiWorkerLoop(cl, cores=1, verbose=FALSE)

Arguments

cl
a dompicluster object created with startMPIcluster.
cores
Maximum number of cores for workers to use. Defaults to 1.
verbose
Indicates if verbose messages should be enabled. Defaults to FALSE.

Examples

Run this code
## Not run: ------------------------------------
# cl <- openMPIcluster()
# dompiWorkerLoop(cl)
## ---------------------------------------------

Run the code above in your browser using DataLab