hopencl-0.2.0: Haskell bindings for OpenCL

Portabilitynon-portable (GHC extensions)
Stabilityexperimental
MaintainerMartin Dybdal <dybber@dybber.dk>

Foreign.OpenCL.Bindings.Event

Description

OpenCL event handling.

Synopsis

Documentation

createUserEvent

Arguments

:: Context 
-> IO Event

The newly created event

Create a new user event

waitForEvents :: [Event] -> IO ()

Waits on the host thread for commands identified by event objects in event_list to complete. A command is considered complete if its execution status is CL_COMPLETE or a negative value.

eventContext :: Event -> IO Context

The Context associated with an Event

setEventCompleteCallback :: Storable a => Event -> a -> (CommandExecStatus -> a -> IO ()) -> IO ()

The OpenCL standard version 1.1 (page 146) mentions CL_COMPLETE as the only command execution callback types where a callback can be registered. This is the callback set by this function.