<div dir="ltr"><div>I did what barry adviced.</div><div>I found that it's only the -xAVX option which causes problems.</div><div><br></div><div>If I compile the code with the above COPTFLAGS , <b>excluding</b> the <b>-xAVX</b> everything works fine !</div><div><br></div><div>Thanks for the advice.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 2:25 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 May 26, 2015, at 2:14 AM, Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br>
><br>
> Vijay Gopal Chilkuri <<a href="mailto:vijay.gopal.c@gmail.com">vijay.gopal.c@gmail.com</a>> writes:<br>
>> So somehow the optimization flags effect the code execution !?<br>
>> is this a known issue ?<br>
><br>
> Either your code is invalid (e.g., undefined behavior), numerically<br>
> unstable, or your vendor has a bug that you should report.<br>
<br>
</div></div>   So first run with valgrind to find any memory issues <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a><br>
<br>
   If/when that is clean slowly start putting back compiler optimization options (first just something like -O2) until you have a problem.<br>
<br>
   Barry<br>
<br>
Optimization compiler flags are not all that common but do happen, though most of the time it is a user or PETSc bug<br>
<br>
</blockquote></div><br></div>