Oops, I think I missed a single line from my source code, before the finish statement.
val h = here; > The code is still not working anyway... On Thu, Dec 16, 2010 at 1:31 PM, Kirak Hong <hok...@gatech.edu> wrote: > Hi, > > Can somebody help me in copying items from distributed array to a single > array? I am using following code to do some sort of data aggregation after > distributed computations on distributed array, but it seems it doesn't > finish. > > val R <: Region = (0..N); > val D <: Dist = Dist.makeBlock(R); > > da = DistArray.make[Int](D, (p:Point(3))=>0 ); > sa = new Array[Int](R); > > ... do some computations on da ... > > finish > for (place in da.dist.places()) async at (place) > { > for (p in da.dist|here) > { > at(h) > { > sa(p) = da(p); > } > } > } > > Am I missing something? > > Thanks, > Kirak > > -- > Kirak Hong > PhD Student, College of Computing > Georgia Institute of Technology > > -- Kirak Hong PhD Student, College of Computing Georgia Institute of Technology ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users