[X10-users] X10 java backend across different nodes

2009-12-10 Thread Kshitij Mehta
Hello, Can someone tell me how to run an X10 2.0 program on places that reside on different nodes of a cluster? If I use the C++ backend, I should be using a launcher like mpirunx10 -x X10_NTHREADS= -np --hostfile What should I be doing if I am using the JAVA backend? Thanks, Kshitij ---

[X10-users] Parallelizing nested loops

2009-12-08 Thread Kshitij Mehta
Hello, I am using x10 1.7 and the java backend. I am trying to parallelize nested *for* loops. This is the original loop: for(var i:int = 1; i < n1;i++){ for(var j:int = 1; j < n2; j++){ for(var k:int = 1; khttp://p.sf.net/sfu/google-dev2dev ___

Re: [X10-users] variables accessible across all places and classCastException

2009-12-07 Thread Kshitij Mehta
Thats exactly what I want. I want an array to be available/replicated in all places. Also, I am not clear why I get the classCastException. Thanks, Kshitij On Mon, Dec 7, 2009 at 5:20 PM, Igor Peshansky wrote: > Kshitij Mehta wrote on 12/07/2009 05:53:30 PM: > > > Is there a w

[X10-users] variables accessible across all places and classCastException

2009-12-07 Thread Kshitij Mehta
Is there a way to make a variable global such that it is available on all places? I want to avoid declaring it on one place and fetching it at other places using a future. Also, I get a classCastException at the foll.statement: finish ateach(val p(t):Point(1) in Dist.makeUnique(Place.places))

[X10-users] Resolvign BadPlaceExceptions

2009-12-06 Thread Kshitij Mehta
example on how to fix it? Please note that I cannot make the array a val object, it has to be a 'var'. Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer Science University of Houston Texas, USA www.cs.uh.e

Re: [X10-users] x10 execution slow

2009-11-12 Thread Kshitij Mehta
I forgot to mention that we are running this in the Linux environment. On Nov 12, 2009, at 2:03 PM, Kshitij Mehta wrote: > Hello > We are trying to convert a C code to x10 and parallelize it. The C code > (sequential) takes 17 seconds to execute. We have converted the co

[X10-users] x10 execution slow

2009-11-12 Thread Kshitij Mehta
using the C++ backend takes ~12 minutes. We are using x10 v1.7. Any ideas on why it could be taking so long? Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer Science University of Houston USA www.cs.uh.edu/~kmehta

Re: [X10-users] environment variable to set places

2009-11-10 Thread Kshitij Mehta
> > mpirunx10 -x X10_NTHREADS= -np --hostfile > > > > Igor Peshansky wrote: >> >> Kshitij Mehta wrote on 11/10/2009 01:08:14 PM: >> >> >>> Hello >>> Is there a way to set the no. of places in the Linux environment? >>> Looks lik

Re: [X10-users] Verifying x10 program runs in separate places

2009-11-10 Thread Kshitij Mehta
ocess (corresponding to a place) is spawned on a different node. In case of a shared memory machine (single node) can I be sure that each place is mapped to a different core? Its ok if I cannot verify that through the language. On Nov 10, 2009, at 2:36 PM, Igor Peshansky wrote: > Kshitij Meht

[X10-users] outofmemory heap error

2009-11-10 Thread Kshitij Mehta
x27;javac ... -J-Xms256m -J-Xmx256m' How can I do that in x10 ? Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer Science University of Houston USA www.cs.uh.edu/~kmehta --

[X10-users] Verifying x10 program runs in separate places

2009-11-10 Thread Kshitij Mehta
cluster, can I verify that the ateach block is indeed being run on separate nodes ? Something like: ateach { Console.OUT.println("I am place: " + here.id + " on node: " + node_id); } Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of

[X10-users] environment variable to set places

2009-11-10 Thread Kshitij Mehta
Hello Is there a way to set the no. of places in the Linux environment? Looks like the default value is 4, which was set by the x10 runtime during installation. Please note that I am not using eclipse. Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer

[X10-users] Creating 5D arrays

2009-10-29 Thread Kshitij Mehta
. Is there another way to create a 5D array? Thanks, Kshitij Mehta Graduate Student Parallel Software Technologies Lab Dept. of Computer Science University of Houston USA www.cs.uh.edu/~kmehta -- Come build with us! The

[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.u