Tutorial: Where to Add Parallelism with Intel® Advisor 2015 and a Fortran Sample
To predict parallel data sharing problems in your target based on the added Intel Advisor annotations:
Each step is described more fully below.
Build the target in debug mode:
In the terminal session, change directory to the nqueens/ directory (where the zipped sample files were extracted to).
Type make 1_nqueens_serial_debug to build the target in debug mode.
Test the target:
In the terminal session, type ./1_nqueens_serial_debug 8 to execute the application using a reduced chessboard size to minimize execution time.
Notice the application output window displays a board size of 8.
In the Intel Advisor GUI, choose File > Project Properties....
In the Analysis Target tab:
Change the Target type drop-down to Correctness Analysis.
Click the Browse... button next to the Application field and choose the nqueens/1_nqueens_serial_debug file.
Set the Application parameters field to 8. This reduces the size of the chess board to minimize execution time.
Click the OK button to save the changes.
Under
4. Check Correctness in the
Advisor Workflow, click the
button to collect Correctness data while the target executes.
During the Correctness analysis, the
Intel Advisor displays a window similar to the following.
After the Correctness tool finalizes the data, the
Intel Advisor displays a window similar to the following.
The
Problems and Messages pane lists the detected messages and potential data sharing problems:
Data communication and
Memory reuse problems. The severity of each problem or message is indicated by the following icons:
|
|
The Filter pane lets you temporarily limit the problems and messages displayed in the Problems and Messages pane to those that meet specific criteria. |
|
Problems in parallel programming usually involve multiple, interrelated code regions. The Code Locations pane shows a code snippet from each involved code region. |
If you need to dig deeper into a data sharing problem, you can double-click the associated row in the Problems and Messages pane to display a Correctness Source window where you can:
See more source code than just a short code snippet.
Navigate through the call stack.
Click
Summary on the navigation toolbar to re-open the
Summary window. Notice the
Intel Advisor added even more data to this dashboard to help you weigh the predicted maximum speedup benefit against the cost of fixing sharing problems for your sites and tasks.