Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4823 Discussions

How to report comparison results from command-line?

Lau_L_
Beginner
230 Views

Hi,

I have used the Compare feature from GUI by selecting two amplxe files from different runs. How can I do this on the command-line, reporting out e.g. the Summary pane of a comparison?

Thanks!

0 Kudos
3 Replies
David_A_Intel1
Employee
230 Views

Hi Lau:

I'm sorry, but right now it looks liks you would have to do this manually.  For example, output the summary report for each result in CSV format and then use a script to process the output of each report to do the comparison.

[bash]$ amplxe-cl -report summary -format=csv -csv-delimiter=comma -r r001hs > r1results.csv
$ amplxe-cl -report summary -format=csv -csv-delimiter=comma -r r002hs > r2results.csv
$ awk -f compare.awk F1=r1results.csv F2=r2results.csv > comparison.txt
[/bash]

Something like that.  Or, whatever your favorite scripting language is. ;)

Alternately, you can import the results in the GUI and use the Compare functionality there.

Peter_W_Intel
Employee
230 Views

Probably you can compare them in command line directly. For example:

# amplxe-cl -report summary -csv-delimiter="," -r r007runsa -r r008runsa > r7-r8-diff.csv

David_A_Intel1
Employee
230 Views

Even better!  Cool.  Thanks, Peter! ;)

Reply