Hi all,

I'm having difficulties passing data from the master to the children. I 
haven't seen any complete tutorial, all the tutorial broadcast data where 
I would like to send parts of my big tablechip list. 
Everytime I run this, the last line always jams. I even tried to reduce 
the number of rows in data to 10 and still doesn't work. I even tried to 
do a remote.exec(ls()) and doesn't work.

Any tips?

#sending my function
mpi.bcast.Robj2slave(forSlaves)

#sending a message to all children so they wait for data
mpi.bcast.cmd(cmd={data = mpi.recv.Robj(mpi.any.source(),mpi.any.tag())}) 

# Now, send the data to the children
for( i in 1:nrow(adds)){
 print(paste("sending part:",i))
 data = 
data.frame(tablechip[[1]][adds[i,1]:adds[i,2]],tablechip[[2]][adds[i,1]:adds[i,2]],tablechip[[3]][adds[i,1]:adds[i,2]])
 mpi.isend.Robj(data,i,i)
}

#next line jams
results = mpi.remote.exec(forSlaves())

Thanks,

Remi
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to