cudaError_t cudaMemcpyPeer ( void *  dst,
int  dstDevice,
const void *  src,
int  srcDevice,
size_t  count 
)

Copies memory from one device to memory on another device. dst is the base device pointer of the destination memory and dstDevice is the destination device. src is the base device pointer of the source memory and srcDevice is the source device. count specifies the number of bytes to copy.

Note that this function is asynchronous with respect to the host, but serialized with respect all pending and future asynchronous work in to the current device, srcDevice, and dstDevice (use cudaMemcpyPeerAsync to avoid this synchronization).

Parameters:
dst - Destination device pointer
dstDevice - Destination device
src - Source device pointer
srcDevice - Source device
count - Size of memory copy in bytes
Returns:
cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevice
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaMemcpy, cudaMemcpyPeer3D, cudaMemcpyAsync, cudaMemcpyPeerAsync, cudaMemcpy3DPeerAsync


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA