Intel® Advisor

Intel Cilk Plus Reducers

With Intel Cilk Plus, if the only data races in a site come from updates to an accumulator variable, then you may be able to fix them without locks using a reducer. A reducer works with the Intel Cilk Plus runtime system to create a private accumulator variable for each task, and to combine the task-private accumulator variable results in the correct order as the tasks finish. Reducers can be very efficient, because they do not need locks.

Subscribe to Intel® Advisor