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 ...

Get OpenCL Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.