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