Chapter 7. Events, profiling, and synchronization

 

This chapter covers
  • Configuring events and event-handling
  • Using profiling to measure processing time
  • Synchronizing work-item execution

 

Preceding chapters have dealt with the what and how of OpenCL operations; this chapter deals with when. We’re not going to look at new types of operations, but instead you’ll learn how to monitor operations we’ve already encountered.

The concept of an event is central to this discussion. In OpenCL, an event is a data structure that corresponds to an occurrence. One event might monitor the completion of a data transfer operation and another might monitor the execution of a kernel. You can use events in three main ways:

  • Host notification— An event can ...

Get OpenCL in Action: How to Accelerate Graphics and Computation now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.