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
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
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
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
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
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
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
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
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