Re: [R] Rmpi; sample code not running, the slaves won't execute commands

2011-02-09 Thread Chris Carleton
Hi Patrick, Thanks for taking the time to respond. I've since worked it all out and my Rmpi functions are working well now. There seems to be something about slaves and the print() function for me though that results in the slaves executing the commands, but the data is never printed to the termin

Re: [R] Rmpi; sample code not running, the slaves won't execute commands

2011-02-09 Thread Patrick Connolly
On Tue, 01-Feb-2011 at 11:01AM -0500, Chris Carleton wrote: [...] |> |> My output is as follows; |> |> > source("./test_Rmpi.R") How was test_Rmpi.R created? Was it using sink()? |> 3 slaves are spawned successfully. 0 failed. |> master (rank 0, comm 1) of size 4 is running on: minanha

[R] Rmpi; sample code not running, the slaves won't execute commands

2011-02-01 Thread Chris Carleton
Hi All, I'm trying to parallelize some code using Rmpi and I've started with a sample 'hello world' program that's available at http://math.acadiau.ca/ACMMaC/Rmpi/sample.html. The code is as follows; # Load the R MPI package if it is not already loaded. if (!is.loaded("mpi_initialize")) {