<div dir="ltr">Yes, but a newer gcc won&#39;t help. IIRC gcc will need an assembler later, and there is none for AVX+Mac. There&#39;s discussion on a Redmine issue somewhere.<div><br></div><div>Mark</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 5:38 PM, Alexey Shvetsov <span dir="ltr">&lt;<a href="mailto:alexxy@omrb.pnpi.spb.ru" target="_blank">alexxy@omrb.pnpi.spb.ru</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>
Try newer gcc version. gcc-4.2 is ancient one.<br>
<br>
Jochen Hub писал 13-04-2013 19:33:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Just solved it and found GMX_CPU_ACCELERATION.<br>
<br>
Jochen<br>
<br>
Am 4/13/13 5:21 PM, schrieb Jochen Hub:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I don&#39;t manage to configure 4.6 (latest git version) on my Macbook Air.<br>
With gcc 4.7 from Macports I always get<br>
<br>
   Cannot compile AVX intrinsics.  Consider switching compiler.<br>
<br>
I tried different -DGMX_ACCELERATION settings (SSE4.1, SSE2, none), but<br>
this seems to be ignored. The relevant cmake output lines are:<br>
<br>
cmake ... ... -DGMX_ACCELERATION=SSE2<br>
<br>
-- Detecting best acceleration for this CPU - AVX_256<br>
-- Performing Test GNU_AVX_CFLAG - Success<br>
   Cannot compile AVX intrinsics.  Consider switching compiler.<br>
<br>
I also tried with the i686-apple-darwin11-llvm-gcc-<u></u>4.2, but that gives<br>
<br>
   No C AVX flag found.  Consider a newer compiler, or try SSE4.1 (lower<br>
   performance).<br>
   Cannot find immintrin.h, which is required for AVX intrinsics support.<br>
   Consider switching compiler.<br>
<br>
So the issue seems that the -DGMX_ACCELERATION=SSE2 flat is ignored, and<br>
cmake always tries to use AVX.<br>
<br>
Any suggestions how to get 4.6 compiled at present?<br>
<br>
Many thanks,<br>
Jochen<br>
<br>
For the sake of completeness, this is the cmake line:<br>
<br>
CC=`which gcc-mp-4.7`; CXX=`which g++-mp-4.7`<br>
<br>
FFTW_LOCATION=/Users/jhub/src/<u></u>fftw/fftw-33<br>
export CMAKE_PREFIX_PATH=$FFTW_<u></u>LOCATION<br>
rm -rf CMake* *.cmake cmake*<br>
cmake ../gromacs \<br>
     -DCMAKE_INSTALL_PREFIX=$(pwd) \<br>
     -DGMX_X11=OFF \<br>
     -DGMX_MPI=OFF \<br>
     -DCMAKE_CXX_COMPILER=$CXX \<br>
     -DCMAKE_C_COMPILER=$CC \<br>
     -DGMX_GPU=OFF \<br>
     -DGMX_ACCELERATION=SSE2 # or other setting or no line - makes no<br>
difference.<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
<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>
</blockquote>
<br>
-- <br></div></div>
Best Regards,<br>
Alexey &#39;Alexxy&#39; Shvetsov<br>
Petersburg Nuclear Physics Institute, NRC Kurchatov Institute, Gatchina, Russia<br>
Department of Molecular and Radiation Biophysics<br>
Gentoo Team Ru<br>
Gentoo Linux Dev<br>
mailto:<a href="mailto:alexxyum@gmail.com" target="_blank">alexxyum@gmail.com</a><br>
mailto:<a href="mailto:alexxy@gentoo.org" target="_blank">alexxy@gentoo.org</a><br>
mailto:<a href="mailto:alexxy@omrb.pnpi.spb.ru" target="_blank">alexxy@omrb.pnpi.spb.ru</a><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>