Skip to content
Prev 1392 / 2152 Next

mpirun and R

Incidentally, to give the OS the freedom to parse out the load itself,
would it make any difference (and be better practice) if I let each
spawn have access to all the processors :

clusterApply(cl, 1:12, function(x) { require(parallel); mcaffinity(1:12) } )

Also, what is the best way to have R figure out how many CPUs there
are available (so I can pass it to the function as a variable)?

--j

On Sat, Jun 2, 2012 at 8:29 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote: