Run Locks and Waits Analysis

Run the Locks and Waits analysis to identify synchronization objects that caused contention and fix the problem in the source.

To run an analysis:

  1. From the VTune Amplifier toolbar, click the New Analysis button.

    VTune Amplifier result tab opens with the Choose Analysis Type window active.

  2. From the analysis tree on the left, select Algorithm Analysis > Locks and Waits.

    The right pane is updated with the default options for the Locks and Waits analysis.

  3. Select the Analyze Intel runtimes and user synchronization checkbox.
  4. Click the Start button on the right command bar.

VTune Amplifier launches the nqueens_parallel executable that makes calculations, displays the execution time, and exits. VTune Amplifier finalizes the collected data and opens the results in the Locks and Waits viewpoint.


  • To make sure the performance of the application is repeatable, go through the entire tuning process on the same system with a minimal amount of other software executing.

  • This tutorial explains how to run an analysis from the VTune Amplifier graphical user interface (GUI). You can also use the VTune Amplifier command-line interface (amplxe-cl command) to run an analysis. For more details, check the Command-line Interface Support section of the VTune Amplifier Help.

Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.