Copyright | [2009..2017] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
IPC event management for low-level driver interface.
Restricted to devices which support unified addressing on Linux operating systems.
Since CUDA-4.1.
Documentation
A CUDA inter-process event handle.
export :: Event -> IO IPCEvent Source #
Create an inter-process event handle for a previously allocated event.
The event must be created with the Interprocess
and DisableTiming
event flags. The returned handle may then be sent to another process and
open
ed to allow efficient hardware synchronisation between GPU work in
other processes.
After the event has been opened in the importing process, record
,
block
, wait
, query
may be used in either process.
Performing operations on the imported event after the event has been
destroy
ed in the exporting process is undefined.
Requires CUDA-4.0.
open :: IPCEvent -> IO Event Source #
Open an inter-process event handle for use in the current process,
returning an event that can be used in the current process and behaving
as a locally created event with the DisableTiming
flag specified.
The event must be freed with destroy
. Performing operations on the
imported event after the exported event has been destroy
ed in the
exporting process is undefined.
Requires CUDA-4.0.