MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / createEvent

Function createEvent

src/backend/opencl/Event.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32af_event createEvent() {
33 auto e = make_unique<Event>();
34 // Ensure the default CL command queue is initialized
35 getQueue()();
36 if (e->create() != CL_SUCCESS) {
37 AF_ERROR("Could not create event", AF_ERR_RUNTIME);
38 }
39 Event& ref = *e.release();
40 return getHandle(ref);
41}
42
43void markEventOnActiveQueue(af_event eventHandle) {
44 Event& event = getEvent(eventHandle);

Callers 1

createAndMarkEventFunction · 0.70

Calls 3

getQueueFunction · 0.50
getHandleFunction · 0.50
createMethod · 0.45

Tested by

no test coverage detected