[gmx-developers] Configure error on Macbook Air with gcc - despite GMX_ACCELERATION

Mark Abraham mark.j.abraham at gmail.com
Sat Apr 13 20:34:09 CEST 2013


Yes, but a newer gcc won't help. IIRC gcc will need an assembler later, and
there is none for AVX+Mac. There's discussion on a Redmine issue somewhere.

Mark


On Sat, Apr 13, 2013 at 5:38 PM, Alexey Shvetsov <alexxy at omrb.pnpi.spb.ru>wrote:

> Hi!
>
> Try newer gcc version. gcc-4.2 is ancient one.
>
> Jochen Hub писал 13-04-2013 19:33:
>
>  Just solved it and found GMX_CPU_ACCELERATION.
>>
>> Jochen
>>
>> Am 4/13/13 5:21 PM, schrieb Jochen Hub:
>>
>>> Hi all,
>>>
>>> I don't manage to configure 4.6 (latest git version) on my Macbook Air.
>>> With gcc 4.7 from Macports I always get
>>>
>>>    Cannot compile AVX intrinsics.  Consider switching compiler.
>>>
>>> I tried different -DGMX_ACCELERATION settings (SSE4.1, SSE2, none), but
>>> this seems to be ignored. The relevant cmake output lines are:
>>>
>>> cmake ... ... -DGMX_ACCELERATION=SSE2
>>>
>>> -- Detecting best acceleration for this CPU - AVX_256
>>> -- Performing Test GNU_AVX_CFLAG - Success
>>>    Cannot compile AVX intrinsics.  Consider switching compiler.
>>>
>>> I also tried with the i686-apple-darwin11-llvm-gcc-**4.2, but that gives
>>>
>>>    No C AVX flag found.  Consider a newer compiler, or try SSE4.1 (lower
>>>    performance).
>>>    Cannot find immintrin.h, which is required for AVX intrinsics support.
>>>    Consider switching compiler.
>>>
>>> So the issue seems that the -DGMX_ACCELERATION=SSE2 flat is ignored, and
>>> cmake always tries to use AVX.
>>>
>>> Any suggestions how to get 4.6 compiled at present?
>>>
>>> Many thanks,
>>> Jochen
>>>
>>> For the sake of completeness, this is the cmake line:
>>>
>>> CC=`which gcc-mp-4.7`; CXX=`which g++-mp-4.7`
>>>
>>> FFTW_LOCATION=/Users/jhub/src/**fftw/fftw-33
>>> export CMAKE_PREFIX_PATH=$FFTW_**LOCATION
>>> rm -rf CMake* *.cmake cmake*
>>> cmake ../gromacs \
>>>      -DCMAKE_INSTALL_PREFIX=$(pwd) \
>>>      -DGMX_X11=OFF \
>>>      -DGMX_MPI=OFF \
>>>      -DCMAKE_CXX_COMPILER=$CXX \
>>>      -DCMAKE_C_COMPILER=$CC \
>>>      -DGMX_GPU=OFF \
>>>      -DGMX_ACCELERATION=SSE2 # or other setting or no line - makes no
>>> difference.
>>>
>>>
>>>
>>>
>>>
>>>
>> --
>> ------------------------------**---------------------
>> Dr. Jochen Hub
>> Computational Molecular Biophysics Group
>> Institute for Microbiology and Genetics
>> Georg-August-University of Göttingen
>> Justus-von-Liebig-Weg 11, 37077 Göttingen, Germany.
>> Phone: +49-551-39-14189
>> http://cmb.bio.uni-goettingen.**de/ <http://cmb.bio.uni-goettingen.de/>
>> ------------------------------**---------------------
>>
>
> --
> Best Regards,
> Alexey 'Alexxy' Shvetsov
> Petersburg Nuclear Physics Institute, NRC Kurchatov Institute, Gatchina,
> Russia
> Department of Molecular and Radiation Biophysics
> Gentoo Team Ru
> Gentoo Linux Dev
> mailto:alexxyum at gmail.com
> mailto:alexxy at gentoo.org
> mailto:alexxy at omrb.pnpi.spb.ru
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/**mailman/listinfo/gmx-**developers<http://lists.gromacs.org/mailman/listinfo/gmx-developers>
> Please don't post (un)subscribe requests to the list. Use the www
> interface or send it to gmx-developers-request@**gromacs.org<gmx-developers-request at gromacs.org>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20130413/1737ef35/attachment.html>


More information about the gromacs.org_gmx-developers mailing list