availableCores(methods = getOption("availableCoresMethods", c("PBS",
"mc.cores", "system")))
"PBS"
-
Query Torque/PBS environment variablePBS_NUM_PPN
.
Depending on PBS system configuration, thisresourceparameter
may or may not default to one. It can be specified when submitting
a job as in, for instance,qsub -l nodes=4:ppn=2
, which
requests four nodes each with two cores."mc.cores"
-
Query optionmc.cores
, cf.mclapply()
."system"
-
QuerydetectCores()
.detectCores()