cuda.bindings._v2.driver.cu_memcpy#

cuda.bindings._v2.driver.cu_memcpy(uint64_t dst, uint64_t src, size_t byte_count)#

Copies memory.

Copies data between two pointers. dst and src are base pointers of the destination and source, respectively. byte_count specifies the number of bytes to copy. Note that this function infers the type of the transfer (host to host, host to device, device to device, or device to host) from the pointer values. This function is only allowed in contexts which support unified addressing.

Parameters:
  • dst (uint64_t) – Destination unified virtual address space pointer.

  • src (uint64_t) – Source unified virtual address space pointer.

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

See also

cuMemcpy