cuda.bindings._v2.driver.device_can_access_peer#
- cuda.bindings._v2.driver.device_can_access_peer(int dev, int peer_dev) int#
Queries if a device may directly access a peer device’s memory.
Returns in
*can_access_peera value of 1 if contexts ondevare capable of directly accessing memory from contexts onpeer_devand 0 otherwise. If direct access ofpeer_devfromdevis possible, then access may be enabled on two specific contexts by callingctx_enable_peer_access().- Parameters:
- Returns:
Returned access capability.
- Return type:
See also
cuDeviceCanAccessPeer