Intel® Advisor Help
Predict data sharing problems for the annotated tasks. Fix the reported sharing problems.
The Dependencies tool
runs your
annotated serial application program's executable and watches its memory access
operations in great detail to predict possible parallel data sharing problems.
Instead of debugging a data sharing problem in a non-deterministic parallel program, you can use the Dependencies tool to predict likely data sharing and related problems that may occur when you add parallelism to your serial program. This tool allows you to identify and fix the predicted data sharing problems - before you add parallelism.
If you have not used Intel Advisor previously, considering reading the Intel Advisor Tutorials while using the C/C++ or Fortran nqueens samples. If you are not familiar with parallel concepts like data race, please read the help topics in Key Concepts.
The Dependencies tool
performs extensive analysis of your running serial program's executable
(target) to predict the likely data sharing and related problems, such as data
races.
Specify a minimal data set or corresponding run-time parameters and build a Debug build target executable (no optimization and full debug information). Specify this target and run the Dependencies tool. The Dependencies tool takes significantly longer to analyze your program because it must observe all memory accesses within the parallel sites. If you provide a minimal input data set for the Dependencies tool's target, you may be able to reduce the program's run-time (as described in Minimizing Data Collection, Result Size, and Execution Time (Dependencies)). Once data collection completes, the data collected during analysis appears in the Dependencies Report window in the Result tab. If the Dependencies tool did not detect any Problems, a No Problems Detected message appears instead.
To view details about a specific problem or code location, double-click its data row or source line (or right click a row and select View Source from the context menu) to display the Dependencies Source window. To return to the Dependencies Report window, click the Dependencies Report button.
To display and edit sources in a code editor, right-click a line and select Edit Source from the context menu. When using the Intel Advisor GUI, the editor defined by the Options > Editor dialog box appears with the file open at the corresponding location. Later, to return to the Dependencies Report or Dependencies Source window, click the Result tab.
For help using the Dependencies Report and Dependencies Source windows, see Viewing Data from the Dependencies Tool.
After you examine the data in the Dependencies Report and Dependencies Source windows, choose one of the following:
If you modify the sources to fix problems by restructuring code or by adding annotations, you need to rebuild the program and run the Dependencies tool again. Once you fix all the problems, run the Suitability tool again.