Intel® Advisor

Adding the Parallel Framework to Your Build Environment

After you choose the parallel framework, you need to add the parallel framework to your build environment.

Adding the parallel framework to your build environment can require installing additional software, as well as modifying build scripts, modifying project properties , and so on.

Because Intel® Cilk™ Plus allows you to use Intel® TBB mutexes and atomics for synchronization, in some cases you may need to enable both frameworks.

OpenMP Locks

Consider the following annotated C/C++ serial code:

  int count;
  void Tick() {

To implement a lock, use the OpenMP types, variables, and functions to provide more flexible and powerful use of locks. For example, for simple locks, use the omp_lock_t type in C/C++ or the type=omp_lock_kind in Fortran.

Subscribe to Intel® Advisor