Adding annotations requires you
to reference the annotation definitions include file as well as include it from
each source file that contains
Intel® Advisor
annotations.
Note
The Annotation Wizard is supported only in the
Microsoft Visual Studio* code editor. Alternatively, you can copy annotation
code snippets using any editor.
Note
In Visual Studio* 2022, Intel Advisor provides
lightweight integration. You can configure and compile your application and open the standalone Intel Advisor interface from the Visual Studio for further analysis. All your settings will be inherited by the standalone Intel Advisor project.
Note
In most cases, you do not need source annotations when using
Intel® Advisor, except for the Suitability analysis of the
Threading perspective. When analyzing your application with other perspectives, such as
Vectorization and Code Insights or
Offload Modeling, you can analyze all parts of your code automatically or use
Intel Advisor
mark-up capabilities, which do not require you to recompile your application.
Use the annotation wizard to add
Intel® Advisor
annotations to your program.
The annotation line(s) are added in the code editor.
If a loop only executes a single statement and does not
contain an opening brace ({) to allow multi-statement
execution, add braces ({ and
}) around the existing statement and the annotation.