<div class="gmail_quote">On Fri, Jul 27, 2012 at 4:06 AM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">On Thu, Jul 26, 2012 at 2:09 PM, Jochen Hub <span dir="ltr">&lt;<a href="mailto:jhub@gwdg.de" target="_blank">jhub@gwdg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I am trying to compile and run the git master on my Macbook air (OS X Lion). Without success. If I compile with a newer gcc (4.5 or newer, installed from Macports), I get errors like (does this have to do with AVX?)<br>
<br>
[  1%] Building C object src/gromacs/CMakeFiles/<u></u>libgromacs.dir/gmxpreprocess/<u></u>add_par.c.o<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:66:<u></u>no such instruction: `vmovups 0(%r13), %ymm0&#39;<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:69:<u></u>no such instruction: `vmovups %ymm0, 24(%rdi)&#39;<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:79:<u></u>no such instruction: `vmovss 0(%r13), %xmm1&#39;<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:83:<u></u>no such instruction: `vmovss %xmm1, 24(%rdi,%r9,4)&#39;<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:99:<u></u>no such instruction: `vmovss 0(%r13), %xmm2&#39;<br>
/var/folders/ys/<u></u>rh9lzqpj7854h34d2__<u></u>mznph0000gn/T//ccPxJmjg.s:102:<u></u>no such instruction: `vmovss %xmm2, 24(%rdi,%r9,4)&#39;<br></blockquote><div><br></div></div><div>I can confirm this, works on Linux, fails on Mac OS Lion with gcc 4.5 - 4.7 with GMX_ACCELERATION=AVX_256. It looks like AVX instructions are somehow not recognized, although the aforementioned compilers are supposed to have support for it.</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On a gcc 4.4 or earlier, compiling works fine, but mdruns stops with a segfault. A backtrace in gdb </blockquote><div><br></div></div><div>That&#39;s strange as gcc 4.4 is supposed to have AVX support (<a href="http://goo.gl/Rt3BM" target="_blank">http://goo.gl/Rt3BM</a>).</div>
</div></blockquote><div><br></div><div>Just checked and, as expected, the same compiler errors show up with gcc 4.4.7 as well. I&#39;m not sure what did you change in the configuration to get the code built, but you must have used GMX_ACCELERATION != AVX_256.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gives the following. Seems like something goes wrong in FFTW (which was compiled with the same gcc and with --enable-threads --enable-sse --enable-sse2).<br>


<br>
Program received signal EXC_BAD_ACCESS, Could not access memory.<br>
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000048<br>
[Switching to process 44300 thread 0x1b03]<br>
0x0000000100050ebd in gomp_resolve_num_threads ()<br>
(gdb) bt<br>
#0  0x0000000100050ebd in gomp_resolve_num_threads ()<br>
#1  0x0000000100050fc3 in GOMP_parallel_start ()<br>
#2  0x00000001004c0bc2 in fft5d_plan_3d ()<br>
#3  0x0000000100434a52 in gmx_parallel_3dfft_init ()<br>
#4  0x000000010046b6fc in gmx_pme_init ()<br>
#5  0x0000000100026ab3 in mdrunner (nthreads_requested=4, fplog=0x0, cr=0x102100b40, nfile=36, fnm=0x103808200, oenv=0x101000c10, bVerbose=0, bCompact=1, nstglobalcomm=-1, ddxyz=0x1013c0e04, dd_node_order=1, rdd=0, rconstr=0, dddlb_opt=0x10002e26a &quot;auto&quot;, dlb_scale=0.800000012, ddcsx=0x0, ddcsy=0x0, ddcsz=0x0, nstepout=100, resetstep=-1, nmultisim=0, repl_ex_nst=0, repl_ex_nex=0, repl_ex_seed=-1, pforce=-1, cpt_period=15, max_hours=-1, deviceOptions=0x10002e276 &quot;&quot;, Flags=7168) at /Users/jhub/src/gmx/gromacs/<u></u>src/programs/mdrun/runner.c:<u></u>844<br>


#6  0x0000000100024f2d in mdrunner_start_fn (arg=0x101005d60) at /Users/jhub/src/gmx/gromacs/<u></u>src/programs/mdrun/runner.c:<u></u>173<br>
#7  0x0000000100242bfb in tMPI_Thread_starter ()<br>
#8  0x00007fff9785f8bf in _pthread_start ()<br>
#9  0x00007fff97862b75 in thread_start ()<br></blockquote><div><br></div></div><div>Can&#39;t confirm this one right now as there&#39;s no gcc 4.4 on the Mac OS build server. Will check it later. However, it sounds like it&#39;s a similar issue to the ones we&#39;ve had with an ordered clause in a #pragma omp statment. </div>
</div></blockquote><div><br></div><div>Unfortunately, I can confirm this crash. It seems to occur with OMP_NUM_THREADS=m and -nt n, where m&gt;1 and n &gt;1. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Can anyone give me a hint how to fix this? Or is the master so experimental that it is not interned to be used at all right now?<br></blockquote><div><br></div></div><div>Unfortunately, this affects the release-4-6 branch as well. Could you please file a bug on Redmine on the first issue and have a look at the related issue on the second.</div>

<div> </div><div>Cheers,</div><div>--</div><div>Sz.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Many thanks,<br>
Jochen<span><font color="#888888"><br>
<br>
<br>
-- <br>
------------------------------<u></u>---------------------<br>
Dr. Jochen Hub<br>
Computational Molecular Biophysics Group<br>
Institute for Microbiology and Genetics<br>
Georg-August-University of Göttingen<br>
Justus-von-Liebig-Weg 11, 37077 Göttingen, Germany.<br>
Phone: <a href="tel:%2B49-551-39-14189" value="+495513914189" target="_blank">+49-551-39-14189</a><br>
<a href="http://cmb.bio.uni-goettingen.de/" target="_blank">http://cmb.bio.uni-goettingen.<u></u>de/</a><br>
------------------------------<u></u>---------------------<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/<u></u>mailman/listinfo/gmx-<u></u>developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@<u></u>gromacs.org</a>.<br>
</font></span></blockquote></div></div><br>
</blockquote></div><br>