Copyright | [2009..2017] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Foreign.CUDA.Driver.Context.Peer
Contents
Description
Direct peer context access functions for the low-level driver interface.
Since: CUDA-4.0
Peer Access
Possible option values for direct peer memory access
accessible :: Device -> Device -> IO Bool Source #
Queries if the first device can directly access the memory of the second. If
direct access is possible, it can then be enabled with add
.
Requires CUDA-4.0.
add :: Context -> [PeerFlag] -> IO () Source #
If the devices of both the current and supplied contexts support unified addressing, then enable allocations in the supplied context to be accessible by the current context.
Note that access is unidirectional, and in order to access memory in the
current context from the peer context, a separate symmetric call to
add
is required.
Requires CUDA-4.0.