concept synchronization in category opencl

appears as: synchronization
OpenCL in Action: How to Accelerate Graphics and Computation

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.

Besides speed, local memory also has the advantage of being available to every work-item in a work-group. This means you can have multiple work-items processing the same data, thereby improving performance. Synchronization is an important priority in many applications, and chapter 7 discusses work-item synchronization in detail.

This code ensures that each work-item will access different data than every other work-item. But what if you want the work-items to work together and access common data? In this case, you’ll need synchronization, which we’ll discuss in the next section.