Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Optimization flags

bucaioni__thomas
New Contributor I
252 Views

The fastest and simplest combination I found is -Ofast -static. And I also tried -mtune=haswell and Profile Guided Optimization, but it didn't improve the computation time.

Is there anything else I can do in terms of compilation options?

0 Kudos
1 Solution
jimdempseyatthecove
Black Belt
249 Views

When the executable is to be run on the same system as the build is performed

   -xHost   (Linux/macOS)
   /QxHost (Windows)

Jim Dempsey

View solution in original post

2 Replies
jimdempseyatthecove
Black Belt
250 Views

When the executable is to be run on the same system as the build is performed

   -xHost   (Linux/macOS)
   /QxHost (Windows)

Jim Dempsey

View solution in original post

Steve_Lionel
Black Belt Retired Employee
237 Views

You can try -fast as a simple shortcut - this sets several options that usually (but not always) improve computation performance. Be aware that this implies -xHost which optimizes for the CPU you compiled on. If you'll be running the program elsewhere, don't use either of these.

Reply