\brief Creates a new event and marks it in the queue
| 24 | namespace opencl { |
| 25 | /// \brief Creates a new event and marks it in the queue |
| 26 | Event makeEvent(cl::CommandQueue& queue) { |
| 27 | Event e; |
| 28 | if (e.create() == CL_SUCCESS) { e.mark(queue()); } |
| 29 | return e; |
| 30 | } |
| 31 | |
| 32 | af_event createEvent() { |
| 33 | auto e = make_unique<Event>(); |