Hi All, I am using the java backend on X10 2.2.0. I am updating my tutorial examples to 2.2.0. I got the following error message, and thought I would see if anyone has seen anything similar:
dhudak@opt0003 846%> x10c DistPi.x10 dhudak@opt0003 847%> export X10_NPLACES=2 dhudak@opt0003 848%> x10 DistPi With 20000 points, the value of pi is 3.148 dhudak@opt0003 849%> export X10_NPLACES=4 dhudak@opt0003 850%> x10 DistPi With 40000 points, the value of pi is 3.1467 write errno=32 Fatal Error at place 0: sending STANDARD x10rt_msg_params.type: Broken pipe Here is the source code: import x10.util.Random; public class DistPi { public static def main(args: Array[String](1)) { val samplesPerPlace = 10000; val localCounts = DistArray.make[Double](Dist.makeUnique(), 0.0); finish for (p in localCounts.dist.places()) { async at (p) { val seed = 13+here.id; val r = new Random(seed); for (i in 1..samplesPerPlace) { val x = r.nextDouble(); val y = r.nextDouble(); val z = x*x+y*y; if ((x*x + y*y) <= 1.0) { localCounts(here.id)++; } } } } var globalCount:Double = 0.0; for (p in localCounts.dist.places()) { globalCount += (at (p) localCounts(here.id)); } val pi = 4*(globalCount/(samplesPerPlace*here.MAX_PLACES as Double)); Console.OUT.println("With "+samplesPerPlace*here.MAX_PLACES+" points, the value of pi is " + pi); } } Thanks, Dave --- David E. Hudak, Ph.D. dhu...@osc.edu Program Director, HPC Engineering Ohio Supercomputer Center http://www.osc.edu ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users