O'Reilly logo

OpenCL Programming by Example by Koushik Bhattacharyya, Ravishekhar Banger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Events and Synchronization

The previous chapter was all about the OpenCL program and kernel creation, and enqueing the kernels in an NDRange. We also discussed different types of tasks, which will be queued on to a device command queue. Every application will need to keep track of these tasks and synchronize the data view for a computational task. The OpenCL standard provides this synchronizing entity in the form of cl_event objects.

A simple Wikipedia definition defines Events as an action that is usually initiated outside the scope of a program and the status of these events is handled by a piece of code inside the program. There may be multiple sources for events. A typical source of event handle is the OpenCL clEnqueue* routines. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required