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

Function createEvent

src/backend/cuda/Event.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29af_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
40void markEventOnActiveQueue(af_event eventHandle) {
41 Event& event = getEvent(eventHandle);

Callers 1

createAndMarkEventFunction · 0.70

Calls 3

getActiveStreamFunction · 0.85
getHandleFunction · 0.50
createMethod · 0.45

Tested by

no test coverage detected