[R] help with random numbers and Rmpi

Faheem Mitha faheem at email.unc.edu
Mon Dec 15 18:00:14 CET 2003



On Mon, 15 Dec 2003, A.J. Rossini wrote:

> Yes, and no.
>
> Re-read the CPH-statcomp lab, and look at the bootstrap example, which
> solves the same problem.
>
> Look carefully -- it has to initialize the library on each node.
> If you are just loading the library manually, just do it on each node;
> if you are using libraries, just do that.

Ah, I see. I need to use

> clusterEvalQ(cl,dyn.load("mg.so"))

in my case. I should have realised the slaves were already running, after
makeCluster was called. It works now. Excellent. Thanks for your help.

                                                                  Faheem.




More information about the R-help mailing list