<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 5:58 PM, Szilárd Páll <span dir="ltr">&lt;<a href="mailto:szilard.pall@cbr.su.se">szilard.pall@cbr.su.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<div class="im"><br>
&gt; -Kieee. Does someone know whether this is required for GROMACS? One can also<br>
&gt; gain with GCC by adding -ffast-math. Is this safe?<br>
<br>
</div>When testing/debugging the strange performance hit we experienced a<br>
while ago with gcc 4.3.3/4 - which turned out to be a problem with<br>
expf - I also tried the -ffast-math flag and as far as I remember I<br>
got no relevant performance improvement (tested on x86_64). With some<br>
gcc versions it even seemed to produce a small performance hit,<br>
overall showing -1-2% &quot;improvement&quot;.<br></blockquote><div>Yes. I did the same test back then and got 5% improvement for only the solve_pme part. So this agrees with your result.</div><div>Of course this is not that much, but since it is no work to activate it, I think it is still interested. </div>

<div><br></div><div>The question is whether it is safe. Thus is there some code which requires strict accordance of the IEEE rules? My understanding is that fast-math usually doesn&#39;t affect the accuracy. Only if bitwise results are important or things are unstable it should be important. I&#39;m not aware of any code like this, but I&#39;m not sure at all. If we have any code like this we might consider to activate fast-math only for the solve_pme function.</div>

<div><br></div><div>Roland</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Take these metrics with a grain of salt though as my benchmarking was<br>
focused on a 10-20% performance hit on PME. Moreover it was done ~1.5<br>
months ago so It might be worth to test again.<br>
<br>
--<br>
Szilárd<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br>