cudaError_t cudaDeviceDisablePeerAccess ( int  peerDevice  ) 

Disables registering memory on peerDevice for direct access from the current device. If there are any allocations on peerDevice which were registered in the current device using cudaPeerRegister() then these allocations will be automatically unregistered.

Returns cudaErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.

Parameters:
peerDevice - Peer device to disable direct access to
Returns:
cudaSuccess, cudaErrorPeerAccessNotEnabled, cudaErrorInvalidDevice
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaDeviceCanAccessPeer, cudaDeviceEnablePeerAccess


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA