| SnowParam-class {BiocParallel} | R Documentation |
This class is used to parameterize simple network of workstations (SNOW) parallel evaluation on one or several physical computers.
SnowParam(workers = 0L, type=c("SOCK", "PSOCK", "FORK", "MPI"),
catch.errors = TRUE, ...)
## invoke as(cl, "SnowParam")
## S4 method for signature 'SOCKcluster,SnowParam'
coerce(from, to)
## S4 method for signature 'spawnedMPIcluster,SnowParam'
coerce(from, to)
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.
type |
|
catch.errors |
|
... |
Additional arguments passed to
|
from, to |
(N.B. Use |
Return an object representing a SNOW cluster. The cluster is not
created until bpstart is called.
bpstart creates the cluster by invoking makeCluster with
arguments spec=workers, type, and other arguments passed
to ... in SnowParam.
Use as(cl, "SnowParam") to coerce a cluster created directly by
parallel::param to a SnowParam instance. Instances
created in this way cannot be started or stopped.
The following generics are implemented and perform as documented on
the corresponding help page (e.g., ?bpisup):
bpworkers, bpstart, bpstop,
bpisup, bpbackend,
bpbackend<-, bpvec.
Martin Morgan mailto:mtmorgan@fhcrc.org
getClass("BiocParallelParam") for additional parameter classes.
register for registering parameter classes for use in parallel
evaluation.
p <- SnowParam(2L) bplapply(1:10, sqrt, BPPARAM=p) bpvec(1:10, sqrt, BPPARAM=p) ## Not run: register(SnowParam(2L), default=TRUE) ## End(Not run)