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

Chris Carleton w_chris_carleton at hotmail.com
Wed Feb 9 15:21:45 CET 2011


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 terminal - same for error reporting from functions
called by the slaves. I'm not sure where the blockage is, but I've
just worked around it by passing anything I want printed from the
slaves back to the master and then having the master print them. For
all I know, it's normal that the slaves operate in this way, but it's
only been a minor inconvenience for me in any event.

Chris

On 9 February 2011 03:36, Patrick Connolly <p_connolly at slingshot.co.nz> wrote:
> 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
> |> slave1 (rank 1, comm 1) of size 4 is running on: minanha
> |> slave2 (rank 2, comm 1) of size 4 is running on: minanha
> |> slave3 (rank 3, comm 1) of size 4 is running on: minanha
> |>
>
> [...]
>
> |> noticing that problem, I tried to execute the 'hello world' program
> |> above and, as you can see, the slaves are spawned, but they won't
> |> print the text in the mpi.remote.exec() function. Any ideas?
>
> Are you saying that there was no response at all from the other three
> lines?  They work fine for me.  I suspect that you have something not
> quite finished with your MPI setup.  I doubt the problem is with Rmpi
> itself, but then of course, there's not much to work on.
>
> HTH
>
>
>
> --
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>   ___    Patrick Connolly
>  {~._.~}                   Great minds discuss ideas
>  _( Y )_                 Average minds discuss events
> (:_~*~_:)                  Small minds discuss people
>  (_)-(_)                              ..... Eleanor Roosevelt
>
> ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
>
>



More information about the R-help mailing list