cuda.bindings._v2.driver.memcpy_peer#

cuda.bindings._v2.driver.memcpy_peer(
uint64_t dst_device,
intptr_t dst_context,
uint64_t src_device,
intptr_t src_context,
size_t byte_count,
)#

Copies device memory between two contexts.

Copies from device memory in one context to device memory in another context. dst_device is the base device pointer of the destination memory and dst_context is the destination context. src_device is the base device pointer of the source memory and src_context is the source pointer. byte_count specifies the number of bytes to copy.

Parameters:
  • dst_device (uint64_t) – Destination device pointer.

  • dst_context (intptr_t) – Destination context.

  • src_device (uint64_t) – Source device pointer.

  • src_context (intptr_t) – Source context.

  • byte_count (size_t) – Size of memory copy in bytes.

See also

cuMemcpyPeer