I'm quite new to this, attempting to use R in parallel with Rmpi to run simulations.  Effectively this involves creating an overall dataset, then sorting or reconfiguring it into 10 appropriate data subsets, and then doing 10 different analyses respectively.  Most of the analyses are Bayesian simulations and use a Gibbs sampling routine package called Rjags.  All works quite well on a single node.

For parallelization I'm using some examples I found at
http://math.acadiau.ca/ACMMaC/Rmpi/
and it seems to work quite well.

The jags package requires calling an external file called the "model file".  I've tried to find ways to integrate this model file into the R script code so everything is contained in one file but alas most of the solutions simply involve putting everything in a single R script file, which then writes the model file code to an external file, which the jags routine can call.

In an attempt to parallelize this I'm considering sending each of the 10 analyses to different nodes.  However I've not found a command that will send a "file" such as the required model file to each node, such that the command "mpi.remote.exec(routine(input.data))" will find the necessary model file.  I can send the "data", and the appropriate jags fitting routine, but not the required model file.

Have I missed something obvious?  Specific or overall suggestions most welcome.

Thanks

Jim


===============================
Dr. Jim Maas
University of East Anglia


	[[alternative HTML version deleted]]

