I have a script in R that takes advantage of the doParallel
package and the parallelized foreach
function. I am currently registering my cluster by using a variation of the detectCores()
command, which works quite well as the machine I am using has 32 cores.
My question is, if I have access to HPC resources with multiple Linux machines, is it possible to detectCores()
from multiple machines and implement them in a single foreach
call?
For example, if I submit my HPC job so that it uses two nodes, is it possible to get the detectCores()
function to produce a value of 64 rather than 32?