Get Started with Intel® Advisor
CPU / Memory Roofline Insights perspective enables you to visualize actual performance against hardware-imposed performance ceilings, as well as determine the main limiting factor (memory bandwidth or compute capacity).
There are two ways to run the CPU / Memory Roofline Insights perspective: from the Intel® Advisor GUI and from CLI. Intel Advisor enables you to open results collected using both methods in the GUI.
Run CPU / Memory Roofline Insights Perspective from Intel® Advisor GUI
In the
Analysis Workflow pane, the drop-down menu to select the
CPU / Memory Roofline Insights perspective, set data collection accuracy level to
Low, and click the
button to run it. At this accuracy level,
Intel Advisor:
For details about data collection accuracy presets, see Intel Advisor User Guide: CPU Roofline Accuracy Presets. Upon completion, Intel Advisor displays a Roofline chart.
The Roofline chart plots an application's achieved performance and arithmetic intensity against the machine's maximum achievable performance:
In general:
The greater the distance between a dot and the highest achievable roofline, the more room for optimization a function/loop has.
Run CPU / Memory Roofline Insights Perspective from Command Line Interface
To run CPU / Memory Roofline Insights perspective using advisor command line interface, use the following command:
advisor --collect=roofline --project-dir=./advi --search-dir src:p=./advi –- myApplication
This command is a batch mode that runs two analyses one by one:
To view the achieved performance of your application against hardware-imposed performance ceilings on an interactive Roofline chart, open the collected results in the Intel Advisor GUI or use the following command to generate an interactive HTML Roofline report:
advisor --report=roofline --report-output=./advi/advisor-roofline.html --project-dir=./advi
Where report-output option specifies the directory and the HTML file into which Intel Advisor saves the generated report.
For details about generating CLI reports, see the respective section in the Intel Advisor User Guide or use the following command in your terminal:
advisor --help report
Intel Advisor enables you to create a read-only result snapshot using the following command:
advisor --snapshot --project-dir=./advi --pack --cache-sources --cache-binaries -- /tmp/my_proj_snapshot
What's Next
If one or more loops is not vectorizing properly and performance is unsatisfactory:
See Also