"Is there something unusual (lots of @Inline pragmas?  Entire 3000 lines in
a single file?)"

Actually yes.  The code is based off of a large, single file, c++ program
that makes heavy use of inlining so there are a lot of @Inline pragmas.
 The inlined functions are each called only once in the main program so in
theory it could be done without these function at all by just creating
larger methods but that would create less clean code.  Also, I split the
code into 2 files but there are still more than 2000 lines of code in the
primary file.  Do you have any idea how to make the code easier for the
compiler to handle without incurring a significant performance impact?


On Tue, May 7, 2013 at 11:14 AM, David P Grove <gro...@us.ibm.com> wrote:

>
> > I have an moderately size x10 program (~3000 lines) that I am trying
> > to profile and optimize.  Normally it compiles reasonably (takes a
> > couple of minutes) but if I try to compile with the -OPTIMIZE flag
> > the compiler runs for about 20 minutes and crashes with a heap space
> > exception.  Does anyone know why this problem might occur and how
> > one might with it?
>
> The first workaround would be to hack the x10c script to use more than the
> default 1G heap size for the JVM (look for the -Xmx argument at the bottom
> of the script).
>
> That being said, we should be able to compile a 3000 lines in a gig.  Is
> there something unusual (lots of @Inline pragmas?  Entire 3000 lines in a
> single file?) that might be triggering pathological behavior?
>
> --dave
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to