Hi,<div><br></div><div>Which compiler are you referring to, gcc-llvm? Which version? Which code-base are you compiling?</div><div><br></div><div>Normally, when it comes to such optimizations it's the compiler that matters, not so much the OS itself (except on Win). </div>
<div><br clear="all">--<br>Szilárd<br>
<br><br><div class="gmail_quote">On Thu, Jul 12, 2012 at 9:24 AM, Jochen Hub <span dir="ltr"><<a href="mailto:jhub@gwdg.de" target="_blank">jhub@gwdg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
is there a constant defined in the code that allows to test if gromacs is compiled with an Apple compiler?<br>
<br>
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?<br>
<br>
Many thanks,<br>
Jochen<span><font color="#888888"><br>
<br>
<br>
<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>
-- <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'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><br></div>