O'Reilly logo

OpenCL Parallel Programming Development Cookbook by Raymond Tay

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

Understanding events and event-synchronization

The previous recipes demonstrated how you can create memory objects that encapsulates the data that is to be transferred from the host memory to the device memory, and discusses how you can partition the input data among the devices via sub-buffers.

In this recipe, we are going to develop an understanding of how the developer can make use of the event system in OpenCL to control execution of kernel commands as well as memory commands. This is beneficial to the developer because it offers myriad ways in which you can control execution flow in a heterogeneous environment.

Events are, generally, passive mechanisms when the developers wish to be notified of an occurrence, and having the choice of conducting ...

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