[R] MC-Simulation with foreach: Some cores finish early

peter_petersen henning.bumann at gmail.com
Tue Jul 12 13:31:28 CEST 2011


Dear R-Users,

I run a MC-Simulation using the the packages "foreach" and "doMC" on a
PowerMac with 24 cores. There are roughly a hundred parametersets and I
parallelized the program in a way, that each core computes one of these
parametersets completely.

The problem ist, that some parametersets take a lot longer to compute than
others. After a while there are only a quarter of the cores still computing
(their first parameterset), while others are already finished. But some
parametersets are still untouched.

I have thought about changing my parameterfile in a way, that every
combination takes roughly the same time (longer computations are offset with
less repetitions), but maybe there is a more elegant solution.

"Is it somehow possible to wake the finished cores, while there is still
work to do?" ;-)

Sincerly,
H. Bumann

--
View this message in context: http://r.789695.n4.nabble.com/MC-Simulation-with-foreach-Some-cores-finish-early-tp3661998p3661998.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list