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

Function enqueueWaitOnActiveQueue

src/backend/cuda/Event.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void enqueueWaitOnActiveQueue(af_event eventHandle) {
50 Event& event = getEvent(eventHandle);
51 // Use the currently-active stream
52 cudaStream_t stream = getActiveStream();
53 if (event.enqueueWait(stream) != CUDA_SUCCESS) {
54 AF_ERROR("Could not enqueue wait on active stream for event",
55 AF_ERR_RUNTIME);
56 }
57}
58
59void block(af_event eventHandle) {
60 Event& event = getEvent(eventHandle);

Callers

nothing calls this directly

Calls 2

getActiveStreamFunction · 0.85
enqueueWaitMethod · 0.80

Tested by

no test coverage detected