cudaError_t cudaDeviceCanAccessPeer ( int *  canAccessPeer,
int  device,
int  peerDevice 
)

Returns in *canAccessPeer a value of 1 if device device is capable of directly accessing memory from peerDevice and 0 otherwise. If direct access of peerDevice from device is possible, then access may be enabled by calling cudaDeviceEnablePeerAccess().

Parameters:
canAccessPeer - Returned access capability
device - Device from which allocations on peerDevice are to be directly accessed.
peerDevice - Device on which the allocations to be directly accessed by device reside.
Returns:
cudaSuccess, cudaErrorInvalidDevice
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaDeviceEnablePeerAccess, cudaDeviceDisablePeerAccess


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA