[R-sig-hpc] unusual results with Rmpi
hyu at stats.uwo.ca
Thu Dec 9 19:00:42 CET 2010
I don't think
will work because R cannot name sim.dat$bsiaic.dat as an object on slaves.
I don't know what exactly your functions do on slaves. Be aware that all
slaves are likely to have the same random seed unless parallel rng is
used. Install rlecuyer and use mpi.setup.rngstream() to initiate parallel
Maas James Dr (MED) wrote:
> I'm running a small programme as a test and to learn how to use Rmpi.
> I send a data set and routine to two slave nodes, and then get the answers
> back in an object. The routines executed are Bayesian Gibbs sampling
> routines so I would expect slightly different answers back from the two
> nodes but I get identical answers back from both nodes.
> I'm under the impression that each node does the complete routine from
> start to finish before returning answers but this may be my
> misunderstanding. Should the answers in fact be identical because mpi has
> split the job up between the two nodes and both contributed to the
> calculations, therefore both end up with the same answer?
> mpi code that gives me these results is :
> ## send the data to slaves
> ## send the jags fitting functions to slaves
> ## execute the fitting functions on slaves and
> ## get results back
> bsiaictot <- mpi.remote.exec(bsiaicresults())
> bsdaictot <- mpi.remote.exec(bsdaicresults())
> Any suggestions?
> Dr. Jim Maas
> University of East Anglia
> [[alternative HTML version deleted]]
> R-sig-hpc mailing list
> R-sig-hpc at r-project.org
Department of Statistics & Actuarial Sciences
The University of Western Ontario
London, Ontario N6A 5B7
More information about the R-sig-hpc