<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 1:08 PM, David van der Spoel <span dir="ltr">&lt;<a href="mailto:spoel@xray.bmc.uu.se" target="_blank">spoel@xray.bmc.uu.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 class="">On 2014-02-11 14:40, Roland Schulz wrote:<br>


&gt; Hi,<br>
&gt;<br>
&gt; why does TNG_USE_OPENMP even exist? Why would a user want to set<br>
&gt; TNG_USE_OPENMP to something other than GMX_OPENMP? If it is really<br>
&gt; needed I suggest making TNG_USE_OPENMP a multi-choice (on, off, auto),<br>
&gt; where auto is the default and auto takes the value from GMX_OPENMP.<br>
&gt;<br>
</div>I guess because tng is also distributed as a separate package.<br></blockquote><div><br></div><div>That would explain why we need the variable TNG_USE_OPENMP, but not why that variable ever needs to be different than GMX_OPENMP. If there is no need for the user to be able to choose them independent, then it is trivial, because we can simply set TNG_USE_OPENMP to GMX_OPENMP.</div>

<div><br></div><div>Roland</div><div><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 class=""><br>
&gt; Roland<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 10, 2014 at 1:36 PM, Mark Abraham &lt;<a href="mailto:mark.j.abraham@gmail.com">mark.j.abraham@gmail.com</a><br>
</div><div class="">&gt; &lt;mailto:<a href="mailto:mark.j.abraham@gmail.com">mark.j.abraham@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     Good question. I think it may be unsolvable in the current setup.<br>
&gt;     The TNG CMakeLists.cmake declares TNG_USE_OPENMP in its cache in the<br>
&gt;     normal way, but since there is only one cache and GROMACS accesses<br>
&gt;     that file with add_subdirectory, that makes that variable exist on<br>
&gt;     the GROMACS cache. Now getting that variable to track GMX_OPENMP<br>
&gt;     unless set by the user might be hard.<br>
&gt;<br>
&gt;     Using gmx_dependent_option seems like it might work, but I have not<br>
&gt;     yet put enough time into reading/testing how those functions work. I<br>
&gt;     am not sure from reading the descriptions if it can implement &quot;copy<br>
&gt;     this value unless at some point these two values differed.&quot; Unless<br>
&gt;     Teemu has some insight from how he built these, we might have to<br>
&gt;     experiment and then document/extend accordingly.<br>
&gt;<br>
&gt;     Alternative: I believe we can give TNG its own cache by using what<br>
&gt;     is called an external project. Since I don&#39;t think we need a<br>
&gt;     separate cache variable in the GROMACS configuration UI for this<br>
&gt;     OpenMP setting, this should side-step the above, because the TNG<br>
&gt;     CMake will always see the parent project set the OpenMP in the TNG<br>
&gt;     cache. Might have other benefits also.<br>
&gt;<br>
&gt;     Mark<br>
&gt;<br>
&gt;     On Feb 10, 2014 2:49 PM, &quot;Szilárd Páll&quot; &lt;<a href="mailto:pall.szilard@gmail.com">pall.szilard@gmail.com</a><br>
</div><div><div class="h5">&gt;     &lt;mailto:<a href="mailto:pall.szilard@gmail.com">pall.szilard@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         Hi,<br>
&gt;<br>
&gt;         I&#39;m trying to fix issue #1432, but I realized that I know very<br>
&gt;         little<br>
&gt;         about the gmxOptionUtilities cmake module, so I thought I&#39;d ask for<br>
&gt;         comments and suggestions.<br>
&gt;<br>
&gt;         Here&#39;s what I need to do (ideally/if possible):<br>
&gt;         - The value of the TNG_USE_OPENMP cache variable should always have<br>
&gt;         the same value as GMX_OPENMP (even if the latter gets changed<br>
&gt;         multiple<br>
&gt;         times) *unless*<br>
&gt;         - The user manually set a value for the TNG_USE_OPENMP variable.<br>
&gt;<br>
&gt;         I&#39;m guessing I should use the gmx_dependent_option() macro, but I&#39;m<br>
&gt;         not sure how. Tips would be appreciated!<br>
&gt;<br>
&gt;         Cheers,<br>
&gt;         --<br>
&gt;         Szilárd<br>
&gt;         --<br>
&gt;         Gromacs Developers mailing list<br>
&gt;<br>
&gt;         * Please search the archive at<br>
&gt;         <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a><br>
&gt;         before posting!<br>
&gt;<br>
&gt;         * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;<br>
&gt;         * For (un)subscribe requests visit<br>
&gt;         <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a><br>
&gt;         or send a mail to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a><br>
&gt;         &lt;mailto:<a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>&gt;.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
</div></div>&gt; ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a> &lt;<a href="http://cmb.ornl.gov" target="_blank">http://cmb.ornl.gov</a>&gt;<br>
<div class="im">&gt; <a href="tel:865-241-1537" value="+18652411537">865-241-1537</a>, ORNL PO BOX 2008 MS6309<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div><span class=""><font color="#888888">--<br>
David van der Spoel, Ph.D., Professor of Biology<br>
Dept. of Cell &amp; Molec. Biol., Uppsala University.<br>
Box 596, 75124 Uppsala, Sweden. Phone:  <a href="tel:%2B46184714205" value="+46184714205">+46184714205</a>.<br>
<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>    <a href="http://folding.bmc.uu.se" target="_blank">http://folding.bmc.uu.se</a><br>
</font></span><div class=""><div class="h5">--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" 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" 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" 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">gmx-developers-request@gromacs.org</a>.<br>


<br>
<br>
<br>
<br>
</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>