In the gcc compiler I can specify the arguments -Q --help=optimizers
to get a list of the enabled/disabled optimization flags at the current O
level. Is there a similar command for the intel icx compiler? If not, is there a resource that lists the optimization flags by O0, O1, O2, and O3?
I can't seem to find anything on it.
Please visit the link below which has the list of optimization flags and their significance which may help you.
https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/optimization-options/o.html
Besides this, to get list of optimization flags:
-fsave-optimization-record= "format"
Generates an optimization record file in a specific format.-fsave-optimization-record
Generates a YAML optimization record file. In addition, you can try"icx --help | grep optimization"
and check for the option which suits best for your purpose