Dear Igor,
Thank you very much for your fast reply, I had another newbie question please. I couldn't compile the following code: public class Hello { public static def main(var args: Rail[String]!) { //Prt1 val h = new Hello(); val R:Region= [0..10]; val D:Dist(1)=Dist.makeBlock(R);; val a :DistArray[int] =DistArray.make[int](D, ((i):Point)=>i); finish ateach(i:Point in a.dist()) { h.myPrint(a,i); //Console.OUT.println("a("+i+"): " +here.id); } } public def myPrint(a:DistArray[int](1),i:int) { Console.OUT.println("a("+i+"): " +a(i)); } } the problem is in the "myPrint" function, I think I'm missing out something. Method myPrint(a: x10.array.DistArray[x10.lang.Int]{self.dist.region.rank==1}, i: x10.lang.Int) in Hello{self==h, h.home==_place19568819, h!=null} cannot be called with arguments (x10.array.DistArray[x10.lang.Int]{self==a}, x10.array.Point{self==i}); Invalid Parameter. expected type: x10.array.DistArray[x10.lang.Int ]{self.dist.region.rank==1} found: x10.array.DistArray[x10.lang.Int]{self==a} another this is that you told me in the last message to "*read the instructions on the various transports that can be used by the X10 C++ backend.*" where can I find such readings. Thank you for your concern, Regards, Mohammed El Sayed On Wed, Jun 30, 2010 at 9:55 AM, Igor Peshansky <ig...@us.ibm.com> wrote: > mohammed elsaeedy <mohammed.elsae...@kaust.edu.sa> wrote on 06/30/2010 > 06:03:55 AM: > > > Dear all, > > > > I'm totally new to X10, and I'm intending to implement some linear > > kernels with it, I have some questions that I hope you > > could help me with, first, what is the Java and C++ back ends of the > X10? > > What is the difference? does this mean that the X10 > > code is ported to Java or C++ eventually? because if I'm going to > compare my > > linear kernels to MPI for example then I'll need to > > make a fair comparison, i.e I can't compare Java to Fortran. > > Hi, Mohammed, > > Thank you for your interest in X10. > > The compilation strategy for X10 is to generate code in another language, > Java or C++, which is then compiled or interpreted by the corresponding > tools. So, the Java backend for X10 generates Java code and then uses the > JVM to execute the generated program. The C++ backend generates C++ > source, > which is then post-compiled by a C++ compiler (g++ or xlC) to the target > architecture. > > At the moment, the C++ backend is the only one that supports multi-node > execution (the Java backend is SMP-only until later this year). So, if > you > want to compare your X10 program with MPI code running in FORTRAN, then > the > C++ backend is your only option. > > Please read the instructions on the various transports that can be used by > the X10 C++ backend. In particular, X10 can link to (and run on top of) > MPI itself, as well as use more specialized transports for various > architectures (e.g., BG/P). > > Let us know if you have more questions, > Igor > -- > Igor Peshansky (note the spelling change!) > IBM T.J. Watson Research Center > X10: Parallel Productivity and Performance (http://x10-lang.org/) > XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/) > "I hear and I forget. I see and I remember. I do and I understand" -- > Confucius > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > -- Thank you for your concern. Regards, Mohammed El Sayed ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users