7 Sep 2010 04:27
Re: Cluster R "environment" trouble. Using Rmpi
Dear Professor: Thanks very much for the feedback. That has helped me to cut errors and get one of the user programs working. One program is still causing trouble, and I have a couple of questions below. I am sorry that these are so elementary, but if I can understand this, then I can write up some clear working examples for everybody. On Wed, Aug 18, 2010 at 1:05 PM, Hao Yu <hyu@...> wrote: > Hi Paul, > > Just got back from two conferences. > > First of all, when R slaves are spawned, they are "naked", meaning they > are started with basic R functions/lib even that they are in the same dir > with master. You have to tell slaves to get all necessary objects or to > load libraries specifically. There are a few ways to do so. > > Use mpi.bcast.Robj2slave(an Robj) to send "an Robj" from master to all > slaves. If a function to be executed on slaves depends on many > functions/data, those functions/data must be sent to slaves first. > > Use mpi.bcast.cmd (cmd()) to tell salves to run cmd() like > source("SimJob.R") (make sure to remove any execution commands in > SimJob.R). Can you please explain what "execution commands" means here? I am *guessing* that anything that is forbidden in a "sourced" file is also forbidden in a function that is passed to a node. Right?(Continue reading)
RSS Feed