| 27 | } |
| 28 | |
| 29 | af_event createEvent() { |
| 30 | // Default CUDA stream needs to be initialized to use the CUDA driver |
| 31 | // Ctx |
| 32 | getActiveStream(); |
| 33 | auto e = std::make_unique<Event>(); |
| 34 | if (e->create() != CUDA_SUCCESS) { |
| 35 | AF_ERROR("Could not create event", AF_ERR_RUNTIME); |
| 36 | } |
| 37 | return getHandle(*(e.release())); |
| 38 | } |
| 39 | |
| 40 | void markEventOnActiveQueue(af_event eventHandle) { |
| 41 | Event& event = getEvent(eventHandle); |
no test coverage detected