Intel® VTune™ Amplifier
You have completed the Finding Hotspots tutorial. Here are some important things to remember when using the
Intel® VTune™ Amplifier to analyze your code for hotspots:
|
Step |
Tutorial Recap |
Key Tutorial Take-Aways |
|---|---|---|
|
1. Prepare for analysis |
You set up your environment to enable generating symbol information for your binary files, built the target, created the performance baseline, and created the VTune Amplifier project for your analysis target. |
|
|
2. Find hotspots |
You launched the Basic Hotspots data collection that analyzed function calls and CPU time spent in each program unit of your application and identified the following hotspots:
|
|
|
3. Eliminate hotspots |
You optimized the algorithm by enabling the OpenMP* library create a private copy of the array. You rebuilt the application and got performance gain of 1407 ms. |
Click the
|
|
4. Analyze concurrency |
You launched the Concurrency analysis and identified poor thread concurrency for the whole application execution. You analyzed the timeline and identified poor thread balance: all OpenMP threads were constantly transferring execution to each other and were waiting for all threads to complete execution. |
|
|
5. Find lock |
You ran the Locks and Waits analysis and identified the following hotspots:
|
|
|
6. Remove lock |
You optimized the application execution time by removing the unnecessary critical section that caused redundant synchronization and by adding the dynamic load scheduling. |
Double-click the most time-critical synchronization object in the Bottom-up pane. This opens the source code for the wait function it belongs to. Use the hotspot navigation buttons to identify the most time-critical code lines. |
|
7. Check your work |
You ran the Locks and Waits analysis on the optimized code and compared the results before and after optimization using the Compare mode of VTune Amplifier. |
Perform regular regression testing by comparing analysis results before and after optimization. Click the
|
Next step: Prepare your own application(s) for analysis. Then use the VTune Amplifier to find and eliminate hotspots.