Re: [X10-users] Creating 5D arrays

2009-10-29 Thread Josh Milthorpe
Hi Kshitij, the "Array.apply(int, int, )" methods are essentially a convenient shorthand for "Array.apply(Point(rank))" - and they're only defined up to four dimensions. You can access a 5D array using e.g. val zeroPoint = Point.make([0, 0, 0, 0, 0]); Console.OUT.println( t

[X10-users] Creating 5D arrays

2009-10-29 Thread Kshitij Mehta
Hello I am trying to create a 5D array. Creating a 4D array works just fine, but creating a 5D array gives a compilation error. This works (creating 4D array): - public class Array5D { public static def main(args:Rail[String]): Voi

Re: [X10-users] what does 'x:nat' mean?

2009-10-29 Thread Vijay Saraswat
The expression (x:nat)=> 0 should be read as "a function which takes a natural number x as an argument and returns 0". Currently natural numbers are defined as just ints. See x10.runtime/src-x10/x10/lang/_.x10. We will soon switch it to unsigned int. Kshitij Mehta wrote: > Hello > In the f

Re: [X10-users] X10 execution on a cluster

2009-10-29 Thread Vijay Saraswat
Jim -- We will get this organized soon. In the meantime please refer to http://x10.codehaus.org/X10+Application+Development Jim LaGrone wrote: > I'm trying to compile using the C++ backend and execute on 8 nodes of > a Linux cluster. > > Igor mentioned I could use this command > mpirun

[X10-users] what does 'x:nat' mean?

2009-10-29 Thread Kshitij Mehta
Hello In the following snippet of code, what 'x:nat' in the second statement mean? val data: Rail[Int]; data = Rail.makeVar[Int](n, (x:nat)=>0); Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer Science University of Houston USA www.cs.uh.edu/~kmehta

[X10-users] X10 execution on a cluster

2009-10-29 Thread Jim LaGrone
I'm trying to compile using the C++ backend and execute on 8 nodes of a Linux cluster. Igor mentioned I could use this command mpirun -np 8 ../bin/RUN_knowledgeFormation param_file.txt but the 8 processes appear to run on one node. The instructions in the INSTALL file say: To c

Re: [X10-users] Using foreach and ateach

2009-10-29 Thread Jim LaGrone
I may have just figured it out. I didn't have a Dist defined. I add that and it at least compiles. val imagesRegion: Region{rank==1} = [0..EST_TOT_GRID_SIZE-1]; val imagesDist: Dist{rank==1} = Dist.makeBlock(imagesRegion,0); finish ateach ((i_imag

Re: [X10-users] Using foreach and ateach

2009-10-29 Thread Vijay Saraswat
offending source code would really help... need specifics. Jim LaGrone wrote: > I'm having problems implementing a large loop. It works with foreach > but with ateach I get this message: > > State.x10:480-559: No valid method call found for apply(x10.lang.Point > {self.x10.lang.Point#rank==imag

[X10-users] Using foreach and ateach

2009-10-29 Thread Jim LaGrone
I'm having problems implementing a large loop. It works with foreach but with ateach I get this message: State.x10:480-559: No valid method call found for apply(x10.lang.Point {self.x10.lang.Point#rank==imagesRegion.x10.lang.Region#rank}) in x10.lang.Region. 1 error. make[1]: *** [InternalCon