User Guide

Contents

workflow

Explain typical
Intel® Advisor
user scenarios, with corresponding command lines.

Syntax

--workflow
Usage
Explain typical Intel Advisor user scenarios, with corresponding command lines.
Add SIMD Parallelism:
1. Find hotspots.
advisor --collect=survey --project-dir=./advi --search-dir src:r=./src -- ./bin/myApplication advisor --report=survey --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/survey.txt
2. Determine the number of loop iterations.
advisor --collect=survey --project-dir=./advi --search-dir src:r=./src -- ./bin/myApplication advisor --report=survey --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/survey.txt
3. Check for possible dependencies.
advisor --collect=dependencies --project-dir=./advi --search-dir src:r=./src -- ./bin/myApplication advisor --report=dependencies --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/dependencies.txt
4. Check memory access patterns.
advisor --collect=map --project-dir=./advi --search-dir src:r=./sr c -- ./bin/myApplication advisor --report=map --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/map.txt
5. Update the application to enable automatic compiler vectorization, or explicitly mark the loops you need to vectorize. Rebuild the application and test.
Add Threading Parallelism
1. Find hotspots. This step is similar to the first step in the SIMD-parallel workflow (above).
2. Determine the number of loop iterations. This step is similar to the second step in the SIMD parallel workflow (above).
3. Add annotations to the application source code and rebuild the application.
4. Collect suitability data. Note: Annotations must be present in the source code for this collection to be successful.
advisor --collect=suitability --project-dir=./advi --search-dir src:r=./src -- ./bin/myApplication advisor --report=suitability --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/suitability.txt
5. Check for the possible dependencies.
advisor --collect=dependencies --project-dir=./advi --search-dir src:r=./src -- ./bin/myApplication advisor --report=dependencies --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/dependencies.txt
6. Display a list of currently used annotations.
advisor --report=annotations --project-dir=./advi --search-dir src:r=./src --format=text --report-output=./out/annotations.txt
7. Update the application using the chosen parallel coding constructs. Rebuild the application and test.
Use an option file for efficiency. Enter one option on each line. No spaces are allowed in the option entry; use a new line. The option file must be in UTF-8 format.
advisor --report=annotations --option-file=./advi/option.txt
with an
option.txt
file that looks like this:
--project-dir ./advi --search-dir src:r=./src --format=text --report-output ./out/annotations.txt

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.