Hi All,
I have a colleague who wants to parallelize a genetic algorithm written in
Java. I told him that I would evaluate X10 for parallelization for him.
So, the first thing I did was work on updating my tutorial examples from X10
2.1.1 to X10 2.1.2. The only issue I had for most of the codes was to drop the
Void declaration on main, but when I ran my more complicated example
(attached), I got the following errors:
dhudak@opt0003 573%> x10c++ -x10rt mpi -STATIC_CALLS -O -o Driver
DistPrefixSum.x10 Driver.x10
/nfs/07/dhudak/devel/x10/20110525r2/osc-x10/tutorial/DistArrayExamples/DistPrefixSum/DistPrefixSum.x10:81:
No valid method call found for call in given type.
Call: apply(x10.lang.Int{self==lastIndex})
Type:
x10.array.Dist{self==DistPrefixSum#this.DistPrefixSum#prefixSumArray.x10.array.DistArray#dist}
/nfs/07/dhudak/devel/x10/20110525r2/osc-x10/tutorial/DistArrayExamples/DistPrefixSum/DistPrefixSum.x10:27:
'this' or 'super' cannot escape via an 'at' statement during c
onstruction.
/nfs/07/dhudak/devel/x10/20110525r2/osc-x10/tutorial/DistArrayExamples/DistPrefixSum/DistPrefixSum.x10:28:
'this' or 'super' cannot escape via an 'at' statement during c
onstruction.
/nfs/07/dhudak/devel/x10/20110525r2/osc-x10/tutorial/DistArrayExamples/DistPrefixSum/DistPrefixSum.x10:42:
'this' or 'super' cannot escape via an 'at' statement during c
onstruction.
/nfs/07/dhudak/devel/x10/20110525r2/osc-x10/tutorial/DistArrayExamples/DistPrefixSum/DistPrefixSum.x10:43:
'this' or 'super' cannot escape via an 'at' statement during c
onstruction.
5 errors.
This example worked in X10 2.1.1, so I figured that there must have been some
more substantial changes. I have to turn my attention to the GA code, but
figured I would pass this on to the mailing list to see if anyone has seen
something like this before. Let me know.
Thanks,
Dave
---
David E. Hudak, Ph.D. dhu...@osc.edu
Program Director, HPC Engineering
Ohio Supercomputer Center
http://www.osc.edu
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users