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_deviceis the base device pointer of the destination memory anddst_contextis the destination context.src_deviceis the base device pointer of the source memory andsrc_contextis the source pointer.byte_countspecifies 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