Learn R Programming

BBmisc (version 1.2-200)

parallelStart: Parallelization setup for parallelMap.

Description

Defines the underlying parallelization mode (currently parallel/multicore or snowfall) for parallelMap and allows to set a level of parallelization. Only calls to parallelMap with a matching level are parallelized.

Usage

parallelStart(mode = "local", cpus, ...,
    level = as.character(NA), log = NULL)

Arguments

mode
[character(1)] Which parallel mode should be used: local, multicore, snowfall. Default is local without parallel execution.
cpus
[integer(1)] Number of used cpus. Default is mpi.universe.size for snowfall/MPI and 1 otherwise.
...
[any] Optional parameters, only passed to sfInit currently.
level
[character(1)] You can set this so only calls to parallelMap are parallelized that have the same level specified. Default is NA which means all calls are parallelized.
log
[character(1)] Path to an existing directory where a log files for each job is stored via sink. Note that all nodes must have write access to exactly this path. Files are named "

Value

  • Nothing.

Details

For snowfall sfStop, sfSetMaxCPUs, sfInit, sfClusterSetupRNG are called in this order.