- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello - Can someone suggest the optimal performance compiler flags for 2nd gen i7 using GCC4.6.1 and the latest ICC Composer 12.1.3 ? I need to create 32 bit and 64 bit executables to run on Linux.
For GCC, I'm using -O3 -march=corei7-avx -mtune=corei7-avx
For ICC, -O3 -fast -march=corei7-avx -mkl -ipp
Any suggestions would be appreciated.
Thanks - JB
For GCC, I'm using -O3 -march=corei7-avx -mtune=corei7-avx
For ICC, -O3 -fast -march=corei7-avx -mkl -ipp
Any suggestions would be appreciated.
Thanks - JB
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How about enable cross-file optimization with -flto for GCC and -ipo for ICC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
GCC can use
Compiler Option:
-Ofast -march=native -fomit-frame-pointer -minline-all-stringops -malign-double -ftree-vectorize
Compiler Option:
-Ofast -march=native -fomit-frame-pointer -minline-all-stringops -malign-double -ftree-vectorize
-ftree-loop-linear -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all -fforce-addr
-flto -ftree-parallelize-loops=n (n is your core numbers)
Linker Option
-flto -fuse-linker-plugin -lgomp -lpthread -Wl,-O1 -Wl,--as-needed -Wl,-s
-flto -ftree-parallelize-loops=n (n is your core numbers)
Linker Option
-flto -fuse-linker-plugin -lgomp -lpthread -Wl,-O1 -Wl,--as-needed -Wl,-s

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page