Intel® Advisor Help
The Dependencies tool
runs your
program's executable and watches its memory access operations in great detail
to predict possible data sharing problems within the marked loops or annotated
parallel sites. After you fix data sharing problems or change annotations, run
the Dependencies tool again to check the modified program's predicted data
sharing problems. Repeat this until no data sharing problems remain.
Before you run the Dependencies 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 mark-up loops column
.
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 Dependencies tool, do the following:
In the
Advisor Workflow tab, click the
button in
the
Check Dependencies 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 dependencies -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 Check Dependencies group box to get the correct set of command line options that you can use to run the analysis in Advisor CLI.