|
[Sponsors] |
June 1, 2012, 12:07 |
GCC compiler optimization flags (Advanced)
|
#1 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
Howdy Foamers,
I was wondering if anyone has had any experience in other GCC compiler optimization flags other than the typical -O3. I'm considering a recompile with some architecture specific flags. One option I'm planning on using is '-march=native'. This is supposed to look at your CPU and identify any special vector processors onboard such as SSE or AVX units. I don't believe that you would be able to share binaries with people/machines using different chips however since it becomes more specific than the usual x86 instruction set. Really just wondering if anyone is familiar with this stuff or has perhaps tried it out. I did a quick timing on an icoFoam run with -O3. I'll let you guys know if I see any speed up from the advanced optimization. Cheers! |
|
June 1, 2012, 14:33 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Kyle,
Start reading here: http://www.cfd-online.com/Forums/ope...tml#post356486 post #8 By the way, Intel has similar optimization flag lists for each processor of their own. Best regards, Bruno
__________________
|
|
June 4, 2012, 13:06 |
|
#3 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18 |
Thanks for the link!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Question on specify gcc compiler for OpenFOAM 15 | peterlai | OpenFOAM Installation | 2 | October 2, 2008 08:20 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |
Fluent 6.2 and gcc compiler in Sun Blade 2500 | Nitu Gupta | FLUENT | 8 | April 29, 2005 14:58 |