dompiWorkerLoop: Create and start an MPI cluster

Description Usage Arguments Examples

View source: R/dompiWorkerLoop.R

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

1
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

1
2
3
4
5
## Not run: 
cl <- openMPIcluster()
dompiWorkerLoop(cl)

## End(Not run)

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