Hi Kshitij,

a few things to check:

Are you building the X10 runtime from source?  If so, have you set the 
"optimize" flag?  (In x10.runtime.17/build.xml )

The same goes for "NO_CHECKS" if your code does a lot of array access - 
this removes array bounds checks (and others).  I wouldn't recommend 
this unless you already have a functionally correct code, as you will no 
longer receive friendly X10 exceptions, but will get seg faults instead.

Both flags may also be set when building your application:
    x10c++ -O -NO_CHECKS MyApp.x10

Compiling under X10 1.7 is very slow, although it appears to have 
improved with X10 2.0.  Have you experimented with the -commandlineonly 
flag?

If none of the above makes a difference, you may wish to post the key 
parts of your code to this list for further investigation.

Cheers,

Josh


Kshitij Mehta wrote:
> 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 code to x10 
>> (sequential, no parallel constructs added). The java backend takes ~3 
>> minutes to execute while the C++ backend takes ~30 minutes. Compiling 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
>>
>>     
>
> Kshitij Mehta
> Graduate Student
> Parallel Software Technologies Lab 
> Dept. of Computer Science
> University of Houston
> USA
> www.cs.uh.edu/~kmehta
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>   


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to