On Nov 3, 2010, at 10:46 AM, Yoav Zibin wrote:
> In 2.0.5 the syntax for exploding a point was:
> val p(i,j) = [3,4]; // p is a Point(2), i is 3, j is 4
> In 2.1 we changed the exploding syntax to:
> val p[i,j] = [3,4]; // p is a Point(2), i is 3, j is 4
>
Yes, but in the original code I was not pattern matching on the point. I just
had p (of type Point) iterating over the region:
for (p in p0Region) {
...
}
>
> This message:
> (Warning) Reached threshold when checking constraints.
> is a mechanism to make sure that constraint solving won't infinite loop.
> It should be fixed in future releases.
> Can you submit a JIRA (http://jira.codehaus.org/) with a code sample so we
> could look into it?
>
http://jira.codehaus.org/browse/XTENLANG-2026
Thanks,
Dave
> Thanks,
> Yoav
>
> On Wed, Nov 3, 2010 at 10:36 AM, Dave Hudak <[email protected]> wrote:
>
>> Hi All,
>>
>> I am updating some X10 2.0.5 examples to work with 2.1.0.
>>
>> This code worked in 2.0.5 (compiled with -STATIC_CHECKS):
>>
>> val blockDist = Dist.makeBlock(R);
>> val p0Dist = blockDist|here;
>> val p0Region = p0Dist.region();
>> for (p in p0Region) {
>> Console.OUT.println("p0 = "+p);
>> }
>>
>> When compiling under 2.1.0, I got the following error message:
>> dhu...@oscnet166 185%> x10c++ -STATIC_CALLS -O -o Driver Counter.x10
>> Driver.x10
>> (Warning) Reached threshold when checking constraints. If type-checking
>> fails
>> please insert a dynamic cast.
>> Term: R
>>
>> ...now, I changed the code to pattern-match on the point that is iterating
>> over the region:
>> for ([p] in p0Region) {
>> Console.OUT.println("p0 = "+p);
>> }
>>
>> Is there some rationale behind this change or other more suitable code
>> alteration I should be making?
>>
>> Thanks,
>> Dave
>> ---
>> David E. Hudak, Ph.D. [email protected]
>> Program Director, HPC Engineering
>> Ohio Supercomputer Center
>> http://www.osc.edu
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Achieve Improved Network Security with IP and DNS Reputation.
>> Defend against bad network traffic, including botnets, malware,
>> phishing sites, and compromised hosts - saving your company time,
>> money, and embarrassment. Learn More!
>> http://p.sf.net/sfu/hpdev2dev-nov
>> _______________________________________________
>> X10-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/x10-users
>>
> ------------------------------------------------------------------------------
> Achieve Improved Network Security with IP and DNS Reputation.
> Defend against bad network traffic, including botnets, malware,
> phishing sites, and compromised hosts - saving your company time,
> money, and embarrassment. Learn More!
> http://p.sf.net/sfu/hpdev2dev-nov
> _______________________________________________
> X10-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/x10-users
---
David E. Hudak, Ph.D. [email protected]
Program Director, HPC Engineering
Ohio Supercomputer Center
http://www.osc.edu
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware,
phishing sites, and compromised hosts - saving your company time,
money, and embarrassment. Learn More!
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users