<div class="gmail_quote">On Fri, Jul 27, 2012 at 12:07 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jul 26, 2012 at 8:09 AM, Jochen Hub &lt;<a href="mailto:jhub@gwdg.de">jhub@gwdg.de</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to compile and run the git master on my Macbook air (OS X<br>
&gt; Lion). Without success. If I compile with a newer gcc (4.5 or newer,<br>
&gt; installed from Macports), I get errors like (does this have to do with AVX?)<br>
&gt;<br>
&gt; [  1%] Building C object<br>
&gt; src/gromacs/CMakeFiles/libgromacs.dir/gmxpreprocess/add_par.c.o<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:66:no such<br>
&gt; instruction: `vmovups 0(%r13), %ymm0&#39;<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:69:no such<br>
&gt; instruction: `vmovups %ymm0, 24(%rdi)&#39;<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:79:no such<br>
&gt; instruction: `vmovss 0(%r13), %xmm1&#39;<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:83:no such<br>
&gt; instruction: `vmovss %xmm1, 24(%rdi,%r9,4)&#39;<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:99:no such<br>
&gt; instruction: `vmovss 0(%r13), %xmm2&#39;<br>
&gt; /var/folders/ys/rh9lzqpj7854h34d2__mznph0000gn/T//ccPxJmjg.s:102:no such<br>
&gt; instruction: `vmovss %xmm2, 24(%rdi,%r9,4)&#39;<br>
<br>
</div>What is GMX_ACCELERATION set to? Make sure it isn&#39;t set to AVX or that<br>
if it is that your cflags contain -mavx.<br>
<div><div class="h5"><br>
&gt; On a gcc 4.4 or earlier, compiling works fine, but mdruns stops with a<br>
&gt; segfault. A backtrace in gdb gives the following. Seems like something<br>
&gt; goes wrong in FFTW (which was compiled with the same gcc and with<br>
&gt; --enable-threads --enable-sse --enable-sse2).<br>
&gt;<br>
&gt; Program received signal EXC_BAD_ACCESS, Could not access memory.<br>
&gt; Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000048<br>
&gt; [Switching to process 44300 thread 0x1b03]<br>
&gt; 0x0000000100050ebd in gomp_resolve_num_threads ()<br>
&gt; (gdb) bt<br>
&gt; #0  0x0000000100050ebd in gomp_resolve_num_threads ()<br>
&gt; #1  0x0000000100050fc3 in GOMP_parallel_start ()<br>
&gt; #2  0x00000001004c0bc2 in fft5d_plan_3d ()<br>
&gt; #3  0x0000000100434a52 in gmx_parallel_3dfft_init ()<br>
&gt; #4  0x000000010046b6fc in gmx_pme_init ()<br>
&gt; #5  0x0000000100026ab3 in mdrunner (nthreads_requested=4, fplog=0x0,<br>
&gt; cr=0x102100b40, nfile=36, fnm=0x103808200, oenv=0x101000c10, bVerbose=0,<br>
&gt; bCompact=1, nstglobalcomm=-1, ddxyz=0x1013c0e04, dd_node_order=1, rdd=0,<br>
&gt; rconstr=0, dddlb_opt=0x10002e26a &quot;auto&quot;, dlb_scale=0.800000012,<br>
&gt; ddcsx=0x0, ddcsy=0x0, ddcsz=0x0, nstepout=100, resetstep=-1,<br>
&gt; nmultisim=0, repl_ex_nst=0, repl_ex_nex=0, repl_ex_seed=-1, pforce=-1,<br>
&gt; cpt_period=15, max_hours=-1, deviceOptions=0x10002e276 &quot;&quot;, Flags=7168)<br>
&gt; at /Users/jhub/src/gmx/gromacs/src/programs/mdrun/runner.c:844<br>
&gt; #6  0x0000000100024f2d in mdrunner_start_fn (arg=0x101005d60) at<br>
&gt; /Users/jhub/src/gmx/gromacs/src/programs/mdrun/runner.c:173<br>
&gt; #7  0x0000000100242bfb in tMPI_Thread_starter ()<br>
&gt; #8  0x00007fff9785f8bf in _pthread_start ()<br>
&gt; #9  0x00007fff97862b75 in thread_start ()<br>
<br>
</div></div>Did you try a version which included the bugfix for issue 900<br>
(002c4985c1d839810816b5c1ba347634b7d7cabb)?<br>
What exact compiler did you try? Is it LLVM-gcc or gcc with gcc<br>
backend (not llvm)? Also so far we only saw OpenMP problems with<br>
llvm-gcc 4.2 not 4.4. So more details would be useful to know.<br>
<div class="im"><br>
&gt; Can anyone give me a hint how to fix this? Or is the master so<br>
&gt; experimental that it is not interned to be used at all right now?<br>
</div>No it should work pretty well and the testsuite is run before any<br>
commit. And the Jenkins configuration does include gcc 4.2 and 4.6 on<br></blockquote><div><br></div><div>It does, but it uses only the auto-detected GMX_ACCELERATION which gets set to SSE4.1 (as the CPUs in the machine don&#39;t support AVX).</div>
<div><br></div><div>This does suggest to me that we might want to have more thorough (probably nightly) builds with virtually all-vs-all important settings (compilers, platforms, mandatory libraries, etc.).</div><div><br>
</div><div>--<br>Szilárd</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mac. So it is somewhat surprising that you have 2 independent<br>
problems.<br>
<br>
Roland<br>
<div class="im HOEnZb"><br>
&gt;<br>
&gt; Many thanks,<br>
&gt; Jochen<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; ---------------------------------------------------<br>
&gt; Dr. Jochen Hub<br>
&gt; Computational Molecular Biophysics Group<br>
&gt; Institute for Microbiology and Genetics<br>
&gt; Georg-August-University of Göttingen<br>
&gt; Justus-von-Liebig-Weg 11, 37077 Göttingen, Germany.<br>
&gt; Phone: <a href="tel:%2B49-551-39-14189" value="+495513914189">+49-551-39-14189</a><br>
&gt; <a href="http://cmb.bio.uni-goettingen.de/" target="_blank">http://cmb.bio.uni-goettingen.de/</a><br>
&gt; ---------------------------------------------------<br>
</div><div class="im HOEnZb">&gt; --<br>
&gt; gmx-developers mailing list<br>
&gt; <a href="mailto:gmx-developers@gromacs.org">gmx-developers@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-developers</a><br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>
&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>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div><span class="HOEnZb"><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="HOEnZb"><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>