The good news for Sun Studio 12 users is that the only thing that separates you from the kick ass performance on the latest contraptions from AMD and Intel is this set of patches. So, if you are planning to deploy on Intel's Woodcrest and Clovertown or AMD's Barcelona chips, just download the patches, install them and don't forget to tell the compiler what you want:
- if your development and deployment boxes are the same:
-xtarget=native - same as above, but forcing 64bit code generation:
-xtarget=native64 - if your target is Intel's Woodcrest and Clovertown in 32bit mode:
-xtarget=woodcrest -m32 - if your target is Intel's Woodcrest and Clovertown in 64bit mode:
-xtarget=woodcrest -m64 - if your target is AMD's Barcelona in 32bit mode:
-xtarget=barcelona -m32 - if your target is AMD's Barcelona in 64bit mode:
-xtarget=barcelona -m64
Thank you Roman!
I'm going to test this on several processors to benchmark some custom builds of squid, apache, bind, freeswitch and asterisk! wish me luck and I'm guessing this also applies to the linux port of Sun Studio :D.
Keep these hints comming, the sun studio documentation is good but these practical tips is what we need!
Tomas Gayoso
Posted by Tomas Gayoso on February 26, 2009 at 09:59 PM PST #
Best of luck ;-) Yes, the optimizations are supposed to be the same on Linux. To the extent that the system libraries
there let us keep them the same (math lib, for example is less optimized on linux, etc.).
And thanks for the nice comment ;-)
Roman.
Posted by Roman V. Shaposhnik on February 27, 2009 at 04:53 PM PST #