Intel® Advisor Help

5. Add Parallel Framework

After you fix problems, repeat steps 3 and 4. When acceptable, replace Intel Advisor annotations with parallel framework code.

This step assumes you have completed the prior steps, such as:

Choosing and Setting Up the Parallel Framework

First, you need to choose a high-level parallel framework , such as Intel® Cilk™ Plus, OpenMP*, or Intel® Threading Building Blocks (Intel® TBB), which are provided with most Intel® Parallel Studio XE editions. Once you choose the framework, make sure your build environment is set up to use it. If you have not decided which parallel framework to use, read the help topic Overview of Parallel Frameworks.

To set up the parallel framework software for one or more projects, see Adding the Parallel Framework to your Build Environment.

Viewing the Annotation Report Window

The Annotation Report window displays a high-level list of all annotations and their types in a table-like grid format. You can double-click or right-click and select View Source to view the annotated source code.

Replacing Annotations with Parallel Framework Code

Use the Annotation Report window to help you identify the annotations in your program that need to be replaced with parallel framework code.

Start by replacing lock annotations with parallel framework code that will provide synchronization. It is safe to add synchronizing locks to serial code, but not safe to have unsynchronized access without the locks in parallel code.

To enable parallelism, replace parallel site and task annotations with parallel framework code that creates the parallel tasks. See About Replacing Annotations with Intel® TBB Code, About Replacing Annotations with Intel® Cilk™ Plus Code, or About Replacing Annotations with OpenMP Code.

Next Steps

Do one or both of the following:

See Also