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

list of flags used in -O2 optimization

Mikhail_O_
Beginner
442 Views

I have some problems with O2 optimization flags compiling a commercial software. It works with O1, but gives some errors with O2. I would like to try to add O2 flags one-by-one to see which one fails, but in the documentation I could not find the list of flags contained in O2. Or it cannot be reduced to a number of specific flags?

0 Kudos
2 Replies
TimP
Honored Contributor III
442 Views

Try starting from O2 and removing some optimization e.g. -no-vec -fp-model strict -assume protect_parens

0 Kudos
Steven_L_Intel1
Employee
442 Views

Optimization levels cannot be reduced to a set of flags. There are some optimizations that can be turned off with flags, but I'd say most cannot.

0 Kudos
Reply