[gmx-developers] Configure error on Macbook Air with gcc - despite GMX_ACCELERATION
Alexey Shvetsov
alexxy at omrb.pnpi.spb.ru
Sun Apr 14 08:21:17 CEST 2013
Mark Abraham писал 13-04-2013 22:34:
> 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.
Sorry then. I'm not very familar with mac. I know it has its own
assembler (due to macho binary format), but i dont know if it supports
new instruction sets.
>
> 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 [1]
>>> http://cmb.bio.uni-goettingen.de/ [2]
>>> ---------------------------------------------------
>>
>> --
>> 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 [3]
>> Please don't post (un)subscribe requests to the list. Use the www
>> interface or send it to gmx-developers-request at gromacs.org.
>
>
>
> Links:
> ------
> [1] tel:%2B49-551-39-14189
> [2] http://cmb.bio.uni-goettingen.de/
> [3] http://lists.gromacs.org/mailman/listinfo/gmx-developers
--
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
More information about the gromacs.org_gmx-developers
mailing list