Re: [X10-users] Proper use of distributions

2010-07-30 Thread Igor Peshansky
Hi, Dave, You are accessing the method size() of the *field* a_prefix_sum of the current object (i.e., "this"). However, the message says that the *target* of the method *must be local* to the place you are running in. It then says what it thinks that place is, and what it knows about the place

Re: [X10-users] Proper use of distributions

2010-07-30 Thread Dave Hudak
Hi Igor (and all), Here is the output from the compiler: dhu...@oscnet166 125%> x10c++ -STATIC_CALLS -o Driver Driver.x10 PrefixSum.x10 AsyncPrefixSum.x10 DistPrefixSum.x10 /Users/dhudak/osc/research/x10/tutorial/examples/GoodPrefixSum/src/AsyncPrefixSum.x10:48: Place type error: either method

Re: [X10-users] Proper use of distributions

2010-07-29 Thread Igor Peshansky
Hi, Dave, You're accessing a field (or calling a method) of a remote object reference. If you ran the compiler with the -STATIC_CALLS flag, you would have gotten a compile-time error. As it is, the compiler inserts a dynamic check for you, which then fails at runtime. Try compiling your program

Re: [X10-users] Proper use of distributions

2010-07-29 Thread Dave Hudak
Hi All, I took Igor's advice on using a cell to pass results back to the calling place. I recoded my function for translating a distarray into a string as follows. The "boo/hoo" statements are line counters: public def place_str(): String { Console.OUT.println("hoo");

Re: [X10-users] Proper use of distributions

2010-07-28 Thread Igor Peshansky
Igor Peshansky/Watson/i...@ibmus wrote on 07/28/2010 07:15:02 PM: > Dave Hudak wrote on 07/28/2010 02:37:22 PM: > > > Hi All, > > > > I am trying to write a class that will do a prefix sum on an array. I > > have written the single-place version and a single-place version that > > uses multip

Re: [X10-users] Proper use of distributions

2010-07-28 Thread Igor Peshansky
Dave Hudak wrote on 07/28/2010 02:37:22 PM: > Hi All, > > I am trying to write a class that will do a prefix sum on an array. I > have written the single-place version and a single-place version that > uses multiple activities to compute the sums. I am now trying to > write the distributed v

[X10-users] Proper use of distributions

2010-07-28 Thread Dave Hudak
Hi All, I am trying to write a class that will do a prefix sum on an array. I have written the single-place version and a single-place version that uses multiple activities to compute the sums. I am now trying to write the distributed version. Both classes are included (I will eventually wri