Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Does -ipo override -ip?

Mark_Lewy
Valued Contributor I
194 Views

I'm updating a cmake build system for Linux to match our Windows (VS2019) compile options.  Some of our projects use /Qip, others /Qipo.  In the CMakeLists.txt file I have added -ip to CMAKE_Fortran_FLAGS_RELEASE (global compiler options for release builds).  Some libraries have target_compile_options to add -ipo.  This results in -ipo following -ip in the compiler options for those libraries.  Is this going to behave as I would expect, with -ipo overriding -ip?  The documentation seems to be silent on the subject.  I'm working from analogy with the optimisation options (-On) in that the right hand most option is the one that applies for them.

0 Kudos
1 Solution
Steve_Lionel
Black Belt Retired Employee
177 Views

Yes - and -ip is the default at -O2 and higher, anyway.

View solution in original post

1 Reply
Steve_Lionel
Black Belt Retired Employee
178 Views

Yes - and -ip is the default at -O2 and higher, anyway.

Reply