<br><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 3, 2012 at 5:12 AM, 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">
<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sun, Dec 2, 2012 at 12:58 PM, Shirts, Michael (mrs5pt) <span dir="ltr">&lt;<a href="mailto:mrs5pt@eservices.virginia.edu" target="_blank">mrs5pt@eservices.virginia.edu</a>&gt;</span> wrote:<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="im">So, more progress, but no simulations running yet.<br>

<br>
mdrun -nt 8 -ntmpi 8 gives the same error as before (I actually tried that<br>
before, and forgot to include it in my error report)<br>
<br>
mdrun -ntmpi 8 -ntomp 1 gives the error<br>
Fatal error:<br>
OMP_NUM_THREADS (8) and the number of threads requested on the command line<br>
(1) have different values<br>
</div><div class="im"><div>For more information and tips for troubleshooting, please check the GROMACS<br>
website at <a href="http://www.gromacs.org/Documentation/Errors" target="_blank">http://www.gromacs.org/Documentation/Errors</a></div></div></blockquote><div><br></div><div>We probably should print a notice that OMP_NUM_THREADS is set. Otherwise this is really confusing if OMP_NUM_THREADS isn&#39;t set by the user but by the system.</div>
</div></div></blockquote><div><br></div><div>There is a note printed whenever the number of OpenMP threads is set by OMP_NUM_THREADS instead of -ntomp.</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 class="gmail_extra"><div class="gmail_quote"><div class="im">

<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">
Fatal error:<br>
OMP_NUM_THREADS is invalid: &#39;0&#39;<br></blockquote><div><br></div></div><div>This is also for ntomp. Also there you wand to use 1 not 0 to disable OpenMP (1 because it is total number of threads and thus 1 means serial).</div>
<div class="im">

<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>
/var/spool/PBS/mom_priv/jobs/<a href="http://2053253.lc5.itc.virginia.edu.SC" target="_blank">2053253.lc5.itc.virginia.edu.SC</a>: line 22: 12201<br>
Illegal instruction     /h3/n1/shirtsgroup/gromac<br>
s_46/install/bin/mdrun_d -ntomp 1 -ntmpi -8 -deffnm<br>
/bigtmp/mrs5pt/eth.vrescale.50<br></blockquote><div><br></div></div><div>I suppose the CPU on the compute node is different from the build host. You need to change GMX_CPU_ACCELERATION to the one correct for the compute node. It could also help to set GMX_DISTRIBUTABLE_BUILD (both are cmake options).</div>
</div></div></blockquote><div><br></div><div>GMX_DISTRIBUTABLE_BUILD only does one thing, it turns off rdtscp. Is the intention to provide more features for this option? If not, I don&#39;t see the point in not calling it GMX_DISABLE_RDTSCP.<br>
</div><div><br></div><div>Cheers,</div><div>--</div><div>Szilárd</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 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-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Best,<div class="im"><br>
<div>~~~~~~~~~~~~<br>
Michael Shirts<br>
Assistant Professor<br>
Department of Chemical Engineering<br>
University of Virginia<br>
<a href="mailto:michael.shirts@virginia.edu" target="_blank">michael.shirts@virginia.edu</a><br>
<a href="tel:%28434%29-243-1821" value="+14342431821" target="_blank">(434)-243-1821</a><br>
<br>
<br>
</div></div><div class="im">&gt; From: Berk Hess &lt;<a href="mailto:hess@kth.se" target="_blank">hess@kth.se</a>&gt;<br>
&gt; Date: Sun, 2 Dec 2012 09:34:11 +0100<br>
&gt; To: &quot;<a href="mailto:michael.shirts@virginia.edu" target="_blank">michael.shirts@virginia.edu</a>&quot; &lt;<a href="mailto:michael.shirts@virginia.edu" target="_blank">michael.shirts@virginia.edu</a>&gt;, Discussion<br>

&gt; list for GROMACS development &lt;<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a>&gt;<br>
&gt; Subject: Re: [gmx-developers] Gromacs trying to use OpenMP instead of<br>
&gt; thread-mpi despite trying to convince it?<br>
</div><div><div>&gt;<div><div class="h5"><br>
&gt; Hi,<br>
&gt;<br>
&gt; You queuing system probably doesn&#39;t set OMP_NUM_THREADS then<br>
&gt; and I assume this machine has at least 16 (HT) cores.<br>
&gt; mdrun -ntmpi 8 -ntomp 1<br>
&gt; will do what you want, or:<br>
&gt; mdrun -nt 8 -ntmpi 8<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Berk<br>
&gt;<br>
&gt; On 12/02/2012 08:28 AM, Shirts, Michael (mrs5pt) wrote:<br>
&gt;&gt; Quick question:<br>
&gt;&gt;<br>
&gt;&gt; Compiling the most recent code in release-4-6, I compile without OpenMP<br>
&gt;&gt; (because using group rather than verlet cutoffs), and using any of the<br>
&gt;&gt; below:<br>
&gt;&gt;<br>
&gt;&gt; mdrun_d -ntmpi 8 -deffnm ethrun<br>
&gt;&gt; or<br>
&gt;&gt; mdrun_d -nt 8 -deffnm ethrun<br>
&gt;&gt; or<br>
&gt;&gt; mdrun_d -deffnm ethrun<br>
&gt;&gt; or<br>
&gt;&gt; mdrun_d -ntomp 0 -deffnm ethrun<br>
&gt;&gt; or<br>
&gt;&gt; mdrun_d -ntomp 0 -ntmpi8 -deffnm ethrun<br>
&gt;&gt;<br>
&gt;&gt; I get:<br>
&gt;&gt; Fatal error:<br>
&gt;&gt; OpenMP threads are requested, but Gromacs was compiled without OpenMP<br>
&gt;&gt; support<br>
&gt;&gt; For more information and tips for troubleshooting, please check the GROMACS<br>
&gt;&gt; website at <a href="http://www.gromacs.org/Documentation/Errors" target="_blank">http://www.gromacs.org/Documentation/Errors</a><br>
&gt;&gt;<br>
&gt;&gt; Even though I&#39;m presumably requesting thread-mpi.  Worked fine with -nt<br>
&gt;&gt; previously (before the new -nt options introduced a few months back).<br>
&gt;&gt;<br>
&gt;&gt; Any suggestions or something I&#39;m doing wrong?  Perhaps gromacs is<br>
&gt;&gt; interpreting the cluster environment as requesting OpenMP somehow? FWIW, the<br>
&gt;&gt; PBS script request line is &quot;#PBS -l select=1:mpiprocs=8:ncpus=8&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Apologies if I missed this answers somewhere out there already.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; ~~~~~~~~~~~~<br>
&gt;&gt; Michael Shirts<br>
&gt;&gt; Assistant Professor<br>
&gt;&gt; Department of Chemical Engineering<br>
&gt;&gt; University of Virginia<br>
&gt;&gt; <a href="mailto:michael.shirts@virginia.edu" target="_blank">michael.shirts@virginia.edu</a><br>
&gt;&gt; <a href="tel:%28434%29-243-1821" value="+14342431821" target="_blank">(434)-243-1821</a><br>
&gt;&gt;<br>
&gt;<br>
<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>
<br>
<br>
<br>
<br>
</div></div></div></div></blockquote></div><span class=""><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>
865-241-1537, ORNL PO BOX 2008 MS6309<br>
</font></span></div>
<br>--<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></blockquote></div><br></div>