Copyright | [2009..2017] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Event management for C-for-CUDA runtime environment
Event Management
Events are markers that can be inserted into the CUDA execution stream and later queried.
Event creation flags
elapsedTime :: Event -> Event -> IO Float Source #
Determine the elapsed time (in milliseconds) between two events
record :: Event -> Maybe Stream -> IO () Source #
Record an event once all operations in the current context (or optionally specified stream) have completed. This operation is asynchronous.
wait :: Event -> Maybe Stream -> [WaitFlag] -> IO () Source #
Makes all future work submitted to the (optional) stream wait until the given event reports completion before beginning execution. Synchronisation is performed on the device, including when the event and stream are from different device contexts. Requires cuda-3.2.