How to realize nested parallel in R on windows platform -
i seek utilize parapply() in parallel bundle in r.
cl <- makecluster(16) cl.boot <-makecluster(8) in programme, phone call t(parapply(cl,rv,1,sim.one.test)) first. in function sim.one.test,a phone call function boot(). , in boot(), utilize
bs.resample <- t(parapply(cl.boot,rv.boot,1,function(x) bs.mle(n1,n2,x,s,t1,t2,m,theta))) simply, outer function sim.one.test() , inner 1 bs.mle(). error info invalid connection. guess because nested parallel not supported. questions on stackoverflow, suggested should utilize mcapply() can applied on linux run programme on windows platform. there solution nested parallel computing on windows platform? thanks.
why think need nested parallelization? increment parallelization overhead (if works @ all, doubt). conceptually, it's far improve parallelize outer loop (provided contains plenty iterations , more or less load-balanced).
however, utilize nested foreach loops parallel backend. convert nested loops 1 loop before sending workers.
windows r parallel-processing scientific-computing
No comments:
Post a Comment