[gmx-developers] #ifdef statement to test for Apple compiler

Szilárd Páll szilard.pall at cbr.su.se
Thu Jul 12 12:53:26 CEST 2012


Which compiler are you referring to, gcc-llvm? Which version? Which
code-base are you compiling?

Normally, when it comes to such optimizations it's the compiler that
matters, not so much the OS itself (except on Win).


On Thu, Jul 12, 2012 at 9:24 AM, Jochen Hub <jhub at gwdg.de> wrote:

> Hi,
> is there a constant defined in the code that allows to test if gromacs is
> compiled with an Apple compiler?
> I ask since I need to compute many sine's and cosines, and the SSE2-using
> function gmx_mm_sincos_ps is slower on a Mac than a simple sinf/cosf behind
> each other. I assume that the Mac uses its optimized vsincosf function,
> that's why its faster than the SSE2-using function. So want to use
> sinf/cosf on the apple, but gmx_mm_sincos_ps anywhere else (as long as SSE2
> is present). Any idea how to check this?
> Many thanks,
> Jochen
> --
> ------------------------------**---------------------
> 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/>
> ------------------------------**---------------------
> --
> 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/20120712/d04a6a1f/attachment.html>

More information about the gromacs.org_gmx-developers mailing list