Intel® Advisor Help
Intel® Advisor Memory Access Patterns tool runs your serial program's executable and watches its memory access operations in great detail to predict possible issues. After you fix any found issues in the source code, run the Memory Access Patterns tool again to check the modified program's memory access strides.
Before you run the Memory Access Patterns tool, do the following:
Mark Loops for deeper analysis:
Run the Survey Analysis to define hot loops, then mark loops for deeper analysis in the Survey Report window of the Advisor GUI.
In Advisor CLI use the --report survey command to view the Survey Report, where you can find IDs of the loops that you need to analyze.
Another way to get the target loop ID is to open the already collected Survey Report in Advisor GUI, mark loops for deeper analysis, and then click Command Line in the Advisor Workflow tab to see what you need to type into the command line to run the collection of a specific loop.
Annotate sources , which is an alternative to marking loops for deeper analysis. Add Intel Advisor annotations into your sources. This tool uses the executed annotations to define the loops that you need to analyze. In case of using annotations, you need to build the application in Debug mode.
Choose a reduced data set that allows this tool to predict data sharing problems.
To run the Memory Access Patterns tool, do one of the following:
In the
Advisor Workflow tab, click the
button in
the
2.2 Check Memory Access Patters group box.
In the
Intel Advisor toolbar click the
icon.
With the Advisor CLI, use any of the following approaches:
Either use the following command after collecting Survey data and getting the loop IDs: advixe-cl --collect map -mark-up-list=<loop ID(s)> --project-dir <pdir> -- <application>
where <pdir> is the project root directory, <application> is the name of the target program, and <loop ID(s)> is a comma-separated list of loop IDs that you want to analyze (find the IDs in the Survey report).
Or use Intel Advisor GUI to select target loops in the Survey report via check marks. Refer to the Marking Loops for Deeper Analysis topic of this document for details. Then click Command Line line next to the 2.2 Check Memory Access Patters group box to get the correct set of command line options that you can use to run MAP analysis in Advisor CLI