<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 2:58 PM, Szilárd Páll <span dir="ltr">&lt;<a href="mailto:szilard.pall@cbr.su.se" target="_blank">szilard.pall@cbr.su.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div>
<div dir="ltr">For all developers out there: RFC.<br>
<br>
I hope you do realize that the issues we are discussing are not if-s and when-s and you&#39;ll face them as soon as you want to add/remove/change a compiler flag!<br></div></div></blockquote><div style>sure. It is even clearly documented in the commit message.</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

<div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra">

<div class="gmail_quote">
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div></div><div>I&#39;ll have a look at the discussion, but I&#39;ll need quite some time for that as it very lengthy and contains a long, slightly unrelated, debate.<br>
<br>
</div>
<div>Note that I&#39;m not talking about some magic override, but simply the ability to go to the flags and remove e.g. the &quot;-ip&quot; icc flag which I know that it can in some cases cause performance regression.<br>

</div></div></div></div></div></blockquote><div style>That&#39;s the problem. It is not that easy. I originally made a more complicated suggestion which would have allowed overwrite but it would have been very complicated. So please take the time to read everything AND make a specific suggestion of how to change it. And also keep in mind that we usually don&#39;t change behavior after a release.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote">
<div>
In my eyes, reviewing and changing flags is much more important than the consistency of acceleration flags across cmake reruns, that&#39;s why I find it unfortunate that the build system got crippled in an attempt to fix that issue. </div>

</div></div></div></div></blockquote><div style>That wasn&#39;t the only problem. It wasn&#39;t consistent at all. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div></div>
<div>and adding or overriding should be possible through a single command-line invocation.<br>
<br>
More concretely IMO what we need is:<br>
- A summary printed or at least some read-only advanced variables so that one does not need to run e.g &quot;mdrun -version&quot; to know what flags are used;<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div>I was (and still am) all for the summary. I really liked Teemu&#39;s start of it. But it got cut because of time. Not sure it would be a good idea to print just the flags without having a full summary. I think having read-only variables is very confusing.</div>


</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div><div>I see your point, but you have yet to reply to my criticism on the fact that
<i>it is impossible to at least check what flags are being used</i> and that is a major flaw.</div></div></div></div></div></blockquote><div style>Like I said I was hoping for the summary. </div><div style> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

<div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>
- An intuitive and consistent way to add/change the flags, what the user wants is simple, but currently requires a set of strange steps: enable skipping GROMACS flags, copy the printed flags, remove cache, re-run cmake with the copied flags.<br>


</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div>No need to remove the cache.</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div><div>Fine, remove that step, but you&#39;ve to add two more instead:<br>
- check default CMake flags;<br>
- re-add those when setting flags manually<br>
</div>
<div><br>
</div>
<div>Again, I would very much appreciate of you or others developers would actually comment on the issue in question: the usability concerns around this rather long, complicated, and error-prone set of steps required just to change a flag -Foo to -Bar.<br>

</div></div></div></div></div></blockquote><div style>Please not that it is still better than some other compiler/linker flags which can&#39;t be changed at all. E.g. OpenMP flags are autodected and can&#39;t be changed at all (unless you change the cmakelists code). The same is true for any linker flags (e.g. bug 911). To repeat myself: I would have liked to have a solution which would have made overwriting easy and which would have contained a summary. But that was the solution which seemed best with the available time. Please also note that these bugs are 3 months old. Everyone had plenty of time to come up with a better solution in those 3 months.</div>

<div style><br></div><div style>Roland</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>
<br>
</div>
<div>Cheers,<br>
<div>--<br>
Szilárd</div>
<br>
</div><div><div class="h5">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>Roland</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>
<div>
<div>It might be a good idea to override everything or nothing regardless whether it&#39;s GROMACS or CMake flags.<br>
<br>
</div>
<div>Cheers,<br>
Szilard<br>
</div>
<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>Roland </div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Cheers,</div>
<span><font color="#888888"><span><font color="#888888">
<div>
<div>--<br>
Szilárd</div>
</div>
</font></span></font></span></div>
<span><font color="#888888"></font></span></div>
<span><font color="#888888"></font></span></blockquote>
</div>
<div><span><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">
cmb.ornl.gov</a><br>
<a href="tel:865-241-1537" value="+18652411537" target="_blank">865-241-1537</a>, ORNL PO BOX 2008 MS6309
</font></span></div>
</div>
</div>
<br>
</div>
<div><span><font color="#888888">--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">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" target="_blank">
gmx-developers-request@gromacs.org</a>.<br>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div>
<div><br>
</div>
-- <br>
ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">
cmb.ornl.gov</a><br>
<a href="tel:865-241-1537" value="+18652411537" target="_blank">865-241-1537</a>, ORNL PO BOX 2008 MS6309 </div>
</div>
</div>
<br>
--<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">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" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
</blockquote>
</div></div></div>
<br>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <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
</div></div>