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

OpenCL event synchronization models

In OpenCL, the command queues are used to submit work to a device and each work or task can be associated with an event object. The queuing of the command takes place in-order or as the program flow occurs. But when the commands are dequeued the tasks can execute in-order or out-of-order. In ordered execution one does not need an explicit synchronization that means the next command is executed only when the previous one has completed its execution. But in the case of out-of-order execution, there is a need for synchronization. The OpenCL provides this framework for synchronization. Synchronization is needed in the case of multiple command queues also. The user might want to divide his work load across multiple ...

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