cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
cuda::context::peer_to_peer Namespace Reference

API functions and definitions relating to communications among "peer" contexts on the same system, which may possibly regard different CUDA devices. More...

Functions

bool can_access (context_t accessor, context_t peer)
 Check if a CUDA context can access the global memory of another CUDA context.
 
void enable_access (context_t accessor, context_t peer)
 Enable access by one CUDA device to the global memory of another. More...
 
void disable_access (context_t accessor, context_t peer)
 Disable access by one CUDA device to the global memory of another. More...
 
void enable_bidirectional_access (context_t first, context_t second)
 Enable access both by the first to the second context and the other way around.
 
void disable_bidirectional_access (context_t first, context_t second)
 Disable access both by the first to the second context and the other way around.
 

Detailed Description

API functions and definitions relating to communications among "peer" contexts on the same system, which may possibly regard different CUDA devices.

Function Documentation

◆ disable_access()

void cuda::context::peer_to_peer::disable_access ( context_t  accessor,
context_t  peer 
)
inline

Disable access by one CUDA device to the global memory of another.

Parameters
accessordevice interested in making a remote access
peerdevice to be accessed

◆ enable_access()

void cuda::context::peer_to_peer::enable_access ( context_t  accessor,
context_t  peer 
)
inline

Enable access by one CUDA device to the global memory of another.

Parameters
accessordevice interested in making a remote access
peerdevice to be accessed