<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 19, 2014 at 7:13 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Jan 19, 2014, at 6:23 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
<br>
> On Sun, 19 Jan 2014, Jed Brown wrote:<br>
><br>
>> Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> writes:<br>
>><br>
>>>   Nope because in my previous assignment I asked Satish to check for<br>
>>>   -O stuff in compiler wrappers as well as CFLAGS.<br>
>><br>
>> So if a user builds with MPICH, they'll get different optimization<br>
>> options than building with Open MPI, simply because MPICH includes -O2<br>
>> in the wrapper?<br>
>><br>
>>>> and some compilers have funny names for<br>
>>>> optimization flags.<br>
>>><br>
>>>   This is a small possibility because normally there is a -Od as well<br>
>>>   as the funny named other stuff. If we come upon another funny name<br>
>>>   that replaces -Od we can incorporate that as well.<br>
>><br>
>> I'm just not wild about being in the business of classifying which<br>
>> options are related to optimization.<br>
><br>
> Perhaps swapping the order from '$CFLAGS $COPTFLAGS' to '$COPTFLAGS<br>
> $CFLAGS' will suffice.<br>
<br>
</div></div>   No, this needs to be done right. Turn off PETSc setting optimization flags if mpicc or CFLAGS attempts to set them.<br></blockquote><div><br></div><div>I agree with Jed that this is problematic. We will end up fixing false positives with this, only it will not</div>
<div>be a user error anymore (using CFLAGS instead of COPTFLAGS as indicated in the docs), it will be</div><div>our error, and it will waste our time looking for it.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

   Barry<br>
<br>
><br>
> Satish<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>