Hi Dave,
Again on the KMeans sample. I am little unclear why the following two
updates in lines 85 and 87 are not done atomically. These updates are done
by async activities for each point.
for (var d:Int=0 ; d<DIM ; ++d) {
local_new_clusters()(closest*DIM+d) +=
points(Point.make(p,d));
}
local_cluster_counts()(closest)++;
Thank you,
Saliya
On Mon, Oct 29, 2012 at 11:33 AM, David P Grove <gro...@us.ibm.com> wrote:
> Saliya Ekanayake <esal...@gmail.com> wrote on 10/29/2012 11:04:20 AM:
>
> >
> > By the way I found a small correction for the KMeans sample given in
> > the distribution. In KMeansDist.x10 inside samples the following
> > code at line 106 should be followed by an 'at (d)' as I understood.
> >
> > for (d in points_dist.places()) async {
> >
>
> *Blush* Thanks! You are right.
>
> We screwed up when we updated the sample program for the removal of async
> (P) S from the language and dropped the place shift from the sample code.
> I applied the fix now...
>
> --dave
>
>
>
> ------------------------------------------------------------------------------
> The Windows 8 Center - In partnership with Sourceforge
> Your idea - your app - 30 days.
> Get started!
> http://windows8center.sourceforge.net/
> what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
--
Saliya Ekanayake
http://www.esaliya.blogspot.com
http://www.esaliya.wordpress.com
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users