It worked! Thanks! Dave
On Jul 19, 2010, at 5:11 PM, Yoav Zibin wrote:
> Hi,
> You need to specify the rank/dimension of a_prefix_sum here :
>
> val a_prefix_sum = new Array[Int](a.region, (Point)=>0);
> ... a_prefix_sum([i-1]); ...
>
> So you need to write that:
> public static def computeS
Yes, I completely agree:
* errors should show only user code
The construct "[i-1]" is in face a ValRail.
Matcher means that a method with the given signature was not found.
You compiled with -STATIC_CALLS . If you don't give this option, the
compiler will insert dynamic checks that verify that
---
> Stephen Fink
> IBM T.J. Watson Research Center
> sjf...@us.ibm.com
> (914)784-7776
>
>
>
>
> From:
> Yoav Zibin
> To:
> Mailing list for users of the X10 programming language
>
> Date:
&
Fink
IBM T.J. Watson Research Center
sjf...@us.ibm.com
(914)784-7776
From:
Yoav Zibin
To:
Mailing list for users of the X10 programming language
Date:
07/19/2010 05:12 PM
Subject:
Re: [X10-users] Hopefully quick bug with array
Hi,
You need to specify the rank/dimension of a_prefix_sum her
Hi,
You need to specify the rank/dimension of a_prefix_sum here :
val a_prefix_sum = new Array[Int](a.region, (Point)=>0);
... a_prefix_sum([i-1]); ...
So you need to write that:
public static def computeSum(a:Array[Int]*(1)*)
On Mon, Jul 19, 2010 at 5:03 PM, Dave Hudak wrote:
> Hi All,
>
Hi All,
I hope I am doing something easy to correct. I am trying to move some code to
compute the prefix sum of an integer array into its own method. I'm using
2.0.4.
I get the following error:
dhu...@oscnet166 24%> x10c++ -x10rt mpi -o PrefixSum PrefixSum.x10
/Users/dhudak/osc/research/x10/