| MulticoreParam-class {BiocParallel} | R Documentation |
This class is used to parameterize single computer multicore parallel
evaluation on non-Windows computers. multicoreWorkers() chooses
the number of workers based on operating system (Windows only supports
1 core), global user preference (options(mc.cores=...)), or
number of detected cores (detectCores()).
MulticoreParam(workers = multicoreWorkers(), catch.errors = TRUE,
setSeed = TRUE, recursive = TRUE, cleanup = TRUE,
cleanupSignal = tools::SIGTERM, verbose = FALSE, ...)
multicoreWorkers()
workers |
|
Number of workers on with
Multicore and SSH backend which defaults here to all workers
available. On managed HPC workers defaults to NA
but can be set to control chunking of jobs. See argument
n.chunks in chunk and
submitJobs for more information.
catch.errors |
|
Flag to determine in
apply-like functions (see e.g. bplapply) whether
to quit with an error as soon as one application fails or
encapsulation of function calls in try
blocks which triggers a resume mechanism (see
bpresume). Defaults to TRUE.
setSeed |
|
recursive |
|
cleanup |
|
cleanupSignal |
|
verbose |
|
... |
Additional arguments passed to
|
Return an object with specified values. The object may be saved to disk or reused within a session.
The following generics are implemented and perform as documented on
the corresponding help page (e.g., ?bpisup):
bpworkers, bpstart, bpstop,
bpisup, bpschedule,
bpbackend.
Martin Morgan mailto:mtmorgan@fhcrc.org
getClass("BiocParallelParam") for additional parameter classes.
register for registering parameter classes for use in parallel
evaluation.
p <- MulticoreParam() bplapply(1:10, sqrt, BPPARAM=p) bpvec(1:10, sqrt, BPPARAM=p) ## Not run: register(MulticoreParam(), default=TRUE) ## End(Not run)