By default it uses a multinode cluster if available, otherwise sets up multicore via doMC. Libraries required: parallel, doSNOW, RhpcBLASctl, foreach. As of Feb. 2020 no longer supports doMC.
parallelize(
type = "any",
max_cores = NULL,
allow_multinode = TRUE,
machine_list = Sys.getenv("SLURM_NODELIST"),
cpus_per_node = as.numeric(Sys.getenv("SLURM_CPUS_ON_NODE")),
outfile = "",
verbose = FALSE
)
"any", "cluster"/"doSNOW", "doParallel", "doMC", or "seq". doMC now sets up a snow cluster as of Feb. 2020.
Restrict to this many cores, even if more are available.
If T will use multiple nodes if detected. If F will not use multiple machines even if they are available.
List of networked computers for multinode computation.
Number of processes to run on each node, if using multinode parallelization.
File to collect output across workers. IF "" then results are printed to the console.
If TRUE display additional output during execution.
obj Cluster object that can be passed to stop_cluster().
stop_cluster