[Llvm-bgq-discuss] Issues with inlining

Hal Finkel hfinkel at anl.gov
Mon Feb 23 09:24:25 CST 2015


Hi Michael,

I'm nearing completion on a new bgclang version. As soon as I have something to test, let's test it with the new version, and we'll go from there.

 -Hal

----- Original Message -----
> From: "Michael Schlottke" <m.schlottke at fz-juelich.de>
> To: llvm-bgq-discuss at lists.alcf.anl.gov
> Sent: Monday, February 23, 2015 9:18:03 AM
> Subject: Re: [Llvm-bgq-discuss] Issues with inlining
> 
> 
> P.P.S: the described behavior with the “-fno-inline” flag occurred
> with r220548 and r217688 (I didn’t check any older version).
> 
> 
> On 23 Feb 2015, at 15:50 , Schlottke, Michael <
> m.schlottke at fz-juelich.de > wrote:
> 
> 
> Dear Clang/BGQ folks,
> 
> 
> We encounter a problem with certain parts of our C++ code when using
> higher-level optimizations (-On with n>1) with clang on JUQUEEN. I
> was able to boil down the problem to being apparently linked to the
> “-inline” optimization pass. When I compile with “-O3” or “-O2” and
> also use the “-fno-inline” option afterwards, execution works as
> expected.
> 
> 
> The problem only seems to occur on the BG/Q machine as we use the
> same flags everywhere and it does work on e.g. our institute’s
> cluster. Therefore my questions are
> 
> 
> a) Have you encountered a similar problem on BG/Q? If yes, how did
> you manage to resolve it?
> b) What would be the best way to identify and fix the offending lines
> in our code (assuming that it can be fixed/reduced to a handful of
> locations)?
> 
> 
> Thanks a lot!
> 
> 
> Michael
> 
> 
> P.S.: Since I have a good idea in which file the error is located, I
> tried to fix the location by just specifying
> 
> 
> #pragma clang optimize off
> 
> 
> at the beginning of a source file. This, however, led to a compiler
> crash (see http://llvm.org/bugs/show_bug.cgi?id=22664 ), so I could
> not investigate this issue further.
> 
> 
> 
> 
> 
> 
> --
> Michael Schlottke
> 
> 
> SimLab Highly Scalable Fluids & Solids Engineering
> Jülich Supercomputing Centre (JSC)
> Forschungszentrum Jülich GmbH
> 52425 Jülich
> Germany
> 
> Phone: +49 (2461) 61 2326
> Mail: m.schlottke at fz-juelich.de
> Web: http://www.fz-juelich.de/jsc
> 
> 
> 
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> 
> 
> _______________________________________________
> llvm-bgq-discuss mailing list
> llvm-bgq-discuss at lists.alcf.anl.gov
> https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the llvm-bgq-discuss mailing list