search for: allreduce

Displaying 2 results from an estimated 2 matches for "allreduce".

2010 Jul 12
1
How to use mpi.allreduce() in Rmpi?
...reduc<-function(){ a<-mpi.comm.rank()+2 mpi.reduce(a,type=2, op="prod") return(paste("a=",a)) } mpi.bcast.Robj2slave(reduc) mpi.remote.exec(reduc()) cat("Product: ") mpi.reduce(1,op="prod") mpi.close.Rslaves() I want to use the function mpi.allreduce() instead of mpi.reduce(), so slaves should receive the value of the reduction. I don't know how to do it and the avaliable documentation is very small and i'm starting with Rmpi. I also tried with the next two changes but nothing: library(Rmpi) mpi.spawn.Rslaves(nslaves=2) reduc<-fu...
2010 Jul 12
1
How to use mpi.allreduce() in Rmpi?
...reduc<-function(){ a<-mpi.comm.rank()+2 mpi.reduce(a,type=2, op="prod") return(paste("a=",a)) } mpi.bcast.Robj2slave(reduc) mpi.remote.exec(reduc()) cat("Product: ") mpi.reduce(1,op="prod") mpi.close.Rslaves() I want to use the function mpi.allreduce() instead of mpi.reduce(), so slaves should receive the value of the reduction. I don't know how to do it and the avaliable documentation is very small and i'm starting with Rmpi. I also tried with the next two changes but nothing: library(Rmpi) mpi.spawn.Rslaves(nslaves=2) reduc<-fu...