Tutorial: Where to Add Parallelism with Intel® Advisor 2015 and a C/C++ Sample

Add Parallelism

At this point, you would normally:

  1. Rebuild the target in release mode.

  2. Re-run the Suitability Report to see how your Correctness fixes impact the predicted maximum speedup.

  3. Decide if the predicted maximum speedup benefit is worth the effort to add parallelism to your target.

If you decide to add parallelism to your target, you would:

  1. Replace the Intel Advisor annotations with parallel framework code.

  2. Build a parallel version of your target in release mode.

Replace Intel Advisor Annotations with Parallel Framework Code

Because we are trying to keep this tutorial short, we replaced Intel Advisor annotations with parallel framework code for you.

To explore how we made these replacements, just open the *.cpp file that interests you:

Parallel Framework

File

Intel® Cilk™ Plus

3_nqueens_cilk.cpp

OpenMP*

3_nqueens_omp.cpp

Intel® Threading Building Blocks (Intel® TBB)

3_nqueens_tbb.cpp

Tip

The steps for replacing annotations with parallel framework code are fully explained in Intel Advisor Help.

Build Parallel Version of Target in Release Mode

If you also want to build a parallel version of a target in release mode - to, perhaps, compare actual parallel execution time to actual serial execution time - make sure you do the following:

Key Terms

parallel framework

Next Steps

After you convert Intel Advisor annotations to parallel framework code, test the resulting parallel application for correctness and verify its actual parallel performance using the Intel® Inspector and Intel® VTune™ Amplifier respectively.


Submit feedback on this help topic