Portability | non-portable (GHC extensions) |
---|---|
Stability | experimental |
Maintainer | Martin Dybdal <dybber@dybber.dk> |
Synchronization of command queues. See also
Foreign.OpenCL.Bindings.Event.waitForEvents
.
- enqueueBarrier :: CommandQueue -> IO ()
- enqueueMarker :: CommandQueue -> IO Event
- enqueueWaitForEvents :: CommandQueue -> [Event] -> IO ()
- finish :: CommandQueue -> IO ()
Documentation
enqueueBarrier :: CommandQueue -> IO ()
Enqueues a barrier. This is a synchronization point, that ensures that all commands enqueued to the queue is completed before any commands after the barrier is started. This is only useful when using an out-of-order command queue.
enqueueMarker :: CommandQueue -> IO Event
Enqueues a marker into a command queue. This returns an Event
which can be waited on, and will be fired as soon as all actions
enqueued before the marker has been completed.
enqueueWaitForEvents :: CommandQueue -> [Event] -> IO ()
Enqueues a wait for a specific event or a list of events to complete before any future commands queued in the command-queue are executed.