<div dir="ltr"><div>That sounds really interesting! It makes sense, that it would be the case. How would I go about implementing that to test?</div><div><br></div><div>
Would this also help with minimization? I find that minimized geometries are also fairly different between single and double precision. It 
seems as though single precision considers  vdw much less than double precision, whereas double 
precision doesn&#39;t. This is most apparent in cases without 
solvents.

</div><div><br></div><div>Cheers,</div><div>David<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 10:45 AM Michael R Shirts &lt;<a href="mailto:Michael.Shirts@colorado.edu">Michael.Shirts@colorado.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_3051926966073847401WordSection1">
<p class="MsoNormal"><u></u> <u></u></p>
<ul style="margin-top:0in" type="disc">
<li class="gmail-m_3051926966073847401MsoListParagraph" style="margin-left:0in">I think that in many cases the single precision force computation is not what is limiting the accuracy. It is rather the integration and in particular the constraints using single
 precision.<u></u><u></u></li></ul>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I recall talking over old results with Erik (many years ago) that showed exactly this, and seem to have been found by other people; integration and constraints cannot really be done well in single precision; but if they are in double precision
 (or even mixed precision, with careful analysis of rounding steps), with the force in single precision, then numerical performance is much, much better.
<u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:black">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">~~~~~~~~~~~~~~~~<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Michael Shirts<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Associate Professor<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black"><a href="mailto:michael.shirts@colorado.edu" target="_blank"><span style="color:rgb(5,99,193)">michael.shirts@colorado.edu</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black"><a href="http://www.colorado.edu/lab/shirtsgroup/" target="_blank"><span style="color:rgb(5,99,193)">http://www.colorado.edu/lab/shirtsgroup/</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Phone: (303) 735-7860<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Office: JSCBB C123<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Department of Chemical and Biological Engineering<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">University of Colorado Boulder<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">&lt;<a href="mailto:gromacs.org_gmx-developers-bounces@maillist.sys.kth.se" target="_blank">gromacs.org_gmx-developers-bounces@maillist.sys.kth.se</a>&gt; on behalf of Berk Hess &lt;<a href="mailto:hess@kth.se" target="_blank">hess@kth.se</a>&gt;<br>
<b>Reply-To: </b>&quot;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&quot; &lt;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&gt;<br>
<b>Date: </b>Wednesday, July 31, 2019 at 8:42 AM<br>
<b>To: </b>&quot;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&quot; &lt;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&gt;<br>
<b>Subject: </b>Re: [gmx-developers] Double Precision on GPUs<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Hi,<br>
<br>
I think that in many cases the single precision force computation is not what is limiting the accuracy. It is rather the integration and in particular the constraints using single precision. Another solution is to have integration and constraints in double
 precision and (parts of) the force computation in single precision.<br>
<br>
Cheers,<br>
<br>
Berk<br>
<br>
On 7/31/19 4:35 PM, David Lister wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Sorry this isn&#39;t part of the email thread from earlier, I found the thread in the archives and decided to chime in. Not sure how to reply to old threads, but the link is here for consistency.
<a href="https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-developers/2019-July/010488.html" target="_blank">
https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-developers/2019-July/010488.html</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am also be very interested in having double precision supported on GPUs. I&#39;m using gromacs for a project that stretches the target use case and have found the single precision just doesn&#39;t give good results. The same simulation run in
 both single and double gives different results, with the double precision simulation giving the results expected by theory. Unfortunately though, double precision is much slower.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Having GPU support for double precision would be a really big help for me as well.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">David<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</blockquote>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
</div>
</div>

-- <br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.</blockquote></div>