Description Usage Arguments Details Value
View source: R/parallelStart.R
Defines the underlying parallelization mode for parallelMap()
. Also allows
to set a “level” of parallelization. Only calls to parallelMap()
with a matching level are parallelized. The defaults of all settings are
taken from your options, which you can also define in your R profile. For an
introductory tutorial and information on the options configuration, please go
to the project's github page at https://github.com/mlr-org/parallelMap.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | parallelStart(
mode,
cpus,
socket.hosts,
bj.resources = list(),
bt.resources = list(),
logging,
storagedir,
level,
load.balancing = FALSE,
show.info,
suppress.local.errors = FALSE,
reproducible,
...
)
parallelStartLocal(show.info, suppress.local.errors = FALSE, ...)
parallelStartMulticore(
cpus,
logging,
storagedir,
level,
load.balancing = FALSE,
show.info,
reproducible,
...
)
parallelStartSocket(
cpus,
socket.hosts,
logging,
storagedir,
level,
load.balancing = FALSE,
show.info,
reproducible,
...
)
parallelStartMPI(
cpus,
logging,
storagedir,
level,
load.balancing = FALSE,
show.info,
reproducible,
...
)
parallelStartBatchJobs(
bj.resources = list(),
logging,
storagedir,
level,
show.info,
...
)
parallelStartBatchtools(
bt.resources = list(),
logging,
storagedir,
level,
show.info,
...
)
|
mode |
( |
cpus |
( |
socket.hosts |
character |
bj.resources |
list |
bt.resources |
list |
logging |
( |
storagedir |
( |
level |
( |
load.balancing |
( |
show.info |
( |
suppress.local.errors |
( |
reproducible |
( |
... |
(any) |
Currently the following modes are supported, which internally dispatch the mapping operation to functions from different parallelization packages:
local: No parallelization with mapply()
multicore: Multicore execution on a single machine with parallel::mclapply()
.
socket: Socket cluster on one or multiple machines with parallel::makePSOCKcluster()
and parallel::clusterMap()
.
mpi: Snow MPI cluster on one or multiple machines with parallel::makeCluster()
and parallel::clusterMap()
.
BatchJobs: Parallelization on batch queuing HPC clusters, e.g., Torque, SLURM, etc., with BatchJobs::batchMap()
.
For BatchJobs mode you need to define a storage directory through the
argument storagedir
or the option parallelMap.default.storagedir
.
Nothing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.