View Results in CLI
If you run the
perspective from command line, you can print the results collected in the CLI and save them to a
For example, to generate the Suitability report for the OpenMP* threading model:
advisor --report=suitability --project-dir=./advi_results --threading-model=openmp
You should see a similar result:
Target CPU Count: 8 Threading Model: OpenMP*
Maximum gain for all sites: 6.10998
Site Label Source Location Impact to Total Serial Time Total Parallel Time Site Gain Average Serial Time ...
Program Gain ...
solve nqueens_serial.cpp:154 6.11x 4.080s 0.631s 6.47x 4.080s ...
Annotation Annotation Label Source Location Number of Instances Maximum Instance Average Serial ...
Time Time ...
Selected Site solve nqueens_serial.cpp:154 1 4.080s 4.080s ...
Task setQueen nqueens_serial.cpp:156 14 0.477s 0.267s ...
Lock ? 365596 < 0.001s < 0.001s ...
Benefit Loss If
Site Option Done? If Done Not Done Recommended
solve Reduce Site Overhead No
solve Reduce Task Overhead No
solve Reduce Lock Overhead No
solve Reduce Lock Contention 0.16x No
solve Enable Task Chunking No
The result is also saved into a text file
You can generate a report for any analysis you run. The
report command looks as follows:
is the analysis you want to generate the results for. For example,
for the Survey report,
for the Suitability report, or
for the Dependencies report.
is a file format to save the results to.
If you generate the Suitability report, you can use additional options to control the result view:
--target-system=[cpu | xeon-phi | offload-to-xeon-phi]
is a platform to model parallelization on.
--threading-model=[tbb | cilk | openmp | tpl | other]
is a threading model to use.
is a list of annotated loops/functions to check if you can reduce overhead.
You can also generate a report with the data from all analyses run and save it to a CSV file with the
action as follows:
advisor --report=joined --report-output=
is a path and a name for a
file to save the report to. For example,
. This option is required to generate a joined report.