Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5142 Discussions

Formatting of roofline plot

ipasichnyk
Novice
2,289 Views

Hi,

are there any possiblities to change the format of roofline plot? I would like to increase the font size of axis labels, etc.

Regards,

Igor

0 Kudos
5 Replies
Zakhar_M_Intel1
Employee
2,289 Views

Hi Igor,

The only way to achieve that - is to increase font size in Advisor as whole. [Main Menu > File > Options] > scroll down to the Font Size combo box. Note that it is better to restart Advisor GUI after doing so.

 

What other kind of customizations are you interested in? Which flow do you use: do you use Roofline Plot in main GUI or do you use "Export as SVG/PDF"? Or export as HTML? Or perhaps you are using advixe-cl -report roofline HTML reports generation?

 

By the way, in case you are a Python fun, you can use flexible but advanced method , involving Python API to customize Roofline chart for your purposes. This is briefly described at https://software.seek.intel.com/LP=18275 or at https://software.intel.com/content/www/us/en/develop/articles/how-to-use-the-intel-advisor-python-api.html

 

Zakhar

 

 

0 Kudos
ipasichnyk
Novice
2,289 Views

Hi Zakhar,

I use both exports to HTML as well as to SVG. Does CLI report generator allows more control over the generated plots?

ideally it would be nice to be able to control 

  • thickness of lines in the plot;
  • axes ranges.

If the python API allows to perform such tasks, I will certainly take a look at it.

Thanks,

Igor

0 Kudos
Zakhar_M_Intel1
Employee
2,289 Views

Igor,

Axes ranges can be controlled via special "arrows" button at the left bottom corner of Roofline chart (before exporting it via GUI)

So, Font size you can control globally and axes ranges you can control with this button. Both settings should normally affect resultant SVG/HTML. 

Thicknes of lines is not configurable. Various colors settings and roofline "dots" visual settings are customizable via Roofline chart "hamburger" menu at top right corner of the chart area.

 

CLI generator doesn't allow more control. And Python API certainly allows ANY customization, just because with Python API you can control everything, but visualization will have to be written by your hands, or you 'll have to use very basic mathplotlib based example as provided in aforementioned article.

 

Zakhar.

ipasichnyk
Novice
2,275 Views

Zakhar,

is there a documentation available about 'rows' keys for code like follows (excerpt from 'roofline.py' example in examples folder of Advisor Python API) 

project = advisor.open_project(sys.argv[1])
data = project.load(advisor.SURVEY)
rows = [{col: row[col] for col in row} for row in data.bottomup]

 Igor

0 Kudos
Zakhar_M_Intel1
Employee
2,253 Views

Igor,

The basic concepts regarding row, hotspots and such - are briefly covered in auto-generated documentation at <advisor_install_dir>/pythonapi/documentation/index.html

 

As for the list of keys (key names) and descriptions available you can either generate it by running smth like

python <advisor_install_dir>/pythonapi/examples/columns.py  {advisor_project_dir}

or just look at  (slightly obsolete) prepackaged

<advisor_install_dir>/pythonapi/examples/columns.txt

There are about 1000 data fields available in total. Mainly look at bottomup  columns section, other sections require slightly more advanced python scripting.

Basically every column available in Advisor GUI (Survey or Refinement tabs) + some other more advanced data is accessible via given row interface.

 

Zakhar.

0 Kudos
Reply