I'm reading this tutorial about code vectorization using Intel Advisor. In particular in this page they suggest to:
Build the target sample application in release mode ... compiler options: -O2 -g
And following:
To build your own applications to produce the most accurate and complete Vectorization Advisor analysis results, build an optimized binary in release mode using the following settings.
-g -O2 (or higher) -qopt-report=5 -vec -simd -qopenmp
Now, I have a couple of questions:
- I thought that in release mode we didn't produce any debug information (which is produced in the "debug mode"), so no
-g
should be included - The weirdest thing is that in the Makefile given for the samples code (
vec_samples
in/opt/intel/advisor_*/...
) uses only-g -O2
why they don't include all the other options. Why?