<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 7:59 PM, Roland Schulz <span dir="ltr">&lt;<a href="mailto:roland@utk.edu" target="_blank">roland@utk.edu</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="im">On Mon, Jun 17, 2013 at 1:10 PM, Mark Abraham &lt;<a href="mailto:mark.j.abraham@gmail.com">mark.j.abraham@gmail.com</a>&gt; wrote:<br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 17, 2013 at 6:16 PM, Manuel Nuno Melo &lt;<a href="mailto:m.n.melo@rug.nl">m.n.melo@rug.nl</a>&gt; wrote:<br>
&gt;&gt;<br>
</div><div class="im">&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I have also had linking problems when making in parallel. In my case they<br>
&gt;&gt; could be traced back to the option to let GMX download/build its own fftw<br>
&gt;&gt; (-DGMX_BUILD_OWN_FFTW=ON).<br>
&gt;&gt;<br>
&gt;&gt; It seems that only one of make&#39;s threads starts building fftw, while the<br>
&gt;&gt; others go ahead building/linking GMX. Since fftw compilation is not ready by<br>
&gt;&gt; the time it is needed, GMX linking is botched.<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; Yes, Rossen first showed this to me. I don&#39;t know if the underlying issue is<br>
&gt; that the dependency cannot be described properly, or that we&#39;re not doing it<br>
&gt; properly. If it&#39;s a problem, people are welcome to contribute a fix! :-)<br>
</div>It was working in <a href="https://gerrit.gromacs.org/#/c/1675/12" target="_blank">https://gerrit.gromacs.org/#/c/1675/12</a>. You then<br>
changed how the dependency works in patch set 13. You never replied to<br>
Christophs comment why this was changed (at least I can&#39;t find a<br>
reply). Do you remember?</blockquote><div><br></div><div style>I couldn&#39;t remember, but gerrit can - I never published a series of responses I made back then, sorry. Now published at <a href="https://gerrit.gromacs.org/1675">https://gerrit.gromacs.org/1675</a></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"> Otherwise I can change it back as 12 did it<br>

and it should work again.<br></blockquote><div><br></div><div style>It might do, but as I said in those secret drafts the form of patch 12 doesn&#39;t work on cmake 2.8.7 because of a bug there in add_library(...GLOBAL) (and I suspect is probably too global, anyway, but this probably does no harm?).</div>
<div style><br></div><div style>So I&#39;m still not sure there&#39;s a convenient solution that works in all cases. Compromising the smooth running of a parallel make for someone downloading FFTW seems like the most low-impact problem of the set we could choose to have.</div>
<div style><br></div><div style>Mark</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">
<br>
Roland<br>
<br>
&gt;<br>
&gt; Mark<br>
<div class=""><div class="h5">&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Manel<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I too suspect filesystem issues or clock skews. I think I tested make -j<br>
&gt;&gt; &gt; and make -j 12. The cluster is currently down for maintenance, so I can&#39;t<br>
&gt;&gt; &gt; inspect the details at the moment.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 5 Apr 2013, at 13:14, Alexey Shvetsov &lt;alexxy at <a href="http://omrb.pnpi.spb.ru" target="_blank">omrb.pnpi.spb.ru</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &gt; Hi Erik<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; What are underlaying filesystem on this cluster? If it slow or<br>
&gt;&gt; &gt; &gt; overloaded<br>
&gt;&gt; &gt; &gt; somehow it may lead to parallel make issues. Also it may be related to<br>
&gt;&gt; &gt; &gt; make<br>
&gt;&gt; &gt; &gt; version (some old versions may expose such behavior). How many make<br>
&gt;&gt; &gt; &gt; threads do<br>
&gt;&gt; &gt; &gt; you issued? I tryed with make -j64 and it builds fine with recent<br>
&gt;&gt; &gt; &gt; cmake<br>
&gt;&gt; &gt; &gt; (2.8.10) and make (3.82) utility.<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; ÷ ÐÉÓØÍÅ ÏÔ 5 ÁÐÒÅÌÑ 2013 11:55:27 ÐÏÌØÚÏ×ÁÔÅÌØ Erik Marklund ÎÁÐÉÓÁÌ:<br>
&gt;&gt; &gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; Building gromacs 4.6.1 failed whenever I issued parallel make, i.e.<br>
&gt;&gt; &gt; &gt;&gt; make -j.<br>
&gt;&gt; &gt; &gt;&gt; I reported this to the cluster admins since I had never seen such<br>
&gt;&gt; &gt; &gt;&gt; behaviour<br>
&gt;&gt; &gt; &gt;&gt; before from gromacs&#39; side, and here&#39;s their reply. I can&#39;t tell<br>
&gt;&gt; &gt; &gt;&gt; whether<br>
&gt;&gt; &gt; &gt;&gt; gromacs is at fault or the cluster.<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; Erik<br>
&gt;&gt; &gt; &gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt; Begin forwarded message:<br>
&gt;&gt; &gt; &gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; I was compiling gromacs on tintin&#39;s login node the other day and it<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; šseems that parallel make, i.e. make -j, doesn&#39;t work on tintin. I<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; šgot linker errors that never showed up when make was run serially.<br>
&gt;&gt; &gt; &gt;&gt;&gt;&gt; šI&#39;ve never encountered such behaviour before.<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; Without any more information (or being able to look for actual files<br>
&gt;&gt; &gt; &gt;&gt;&gt; right<br>
&gt;&gt; &gt; &gt;&gt;&gt; now), I&#39;d guess this is a problem with the makefiles rather than the<br>
&gt;&gt; &gt; &gt;&gt;&gt; actual make. It seems somewhat unexpected that CMake would create<br>
&gt;&gt; &gt; &gt;&gt;&gt; makefiles that aren&#39;t safe for parallel building, but it does seem<br>
&gt;&gt; &gt; &gt;&gt;&gt; the<br>
&gt;&gt; &gt; &gt;&gt;&gt; most likely culprit (assuming it doesn&#39;t let developers add rules<br>
&gt;&gt; &gt; &gt;&gt;&gt; directly to the makefile to work around problems, I don&#39;t remember<br>
&gt;&gt; &gt; &gt;&gt;&gt; if<br>
&gt;&gt; &gt; &gt;&gt;&gt; that&#39;s possible).<br>
&gt;&gt; &gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt; &gt;&gt;&gt; That you only see the problem on tintin can likely be explained by<br>
&gt;&gt; &gt; &gt;&gt;&gt; timing<br>
&gt;&gt; &gt; &gt;&gt;&gt; or other non deterministic factors.<br>
&gt;&gt; &gt; &gt; --<br>
&gt;&gt; &gt; &gt; Best Regards,<br>
&gt;&gt; &gt; &gt; Alexey &#39;Alexxy&#39; Shvetsov<br>
&gt;&gt;<br>
</div></div><div class="im">&gt;&gt; --<br>
&gt;&gt; gmx-developers mailing list<br>
&gt;&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt;&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt;&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&gt;&gt; www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org">gmx-developers-request@gromacs.org</a>.<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div><span class=""><font color="#888888">--<br>
ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>
865-241-1537, ORNL PO BOX 2008 MS6309<br>
</font></span><div class=""><div class="h5">--<br>
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></div></div>