cuda.core.utils.CopyOptions#

class cuda.core.utils.CopyOptions(
src_access_order: MemcpySrcAccessOrder | str = 'stream',
src_location_hint: Device | Host | None = None,
dst_location_hint: Device | Host | None = None,
overlap_mode: MemcpyOverlapMode | str = 'default',
)#

Attribute bundle for a single copy within a batched memcpy.

Parameters:
  • src_access_order (MemcpySrcAccessOrder or str) – Hint describing how the source will be accessed. Default is "stream" (stream-ordered access).

  • src_location_hint (cuda.core.Device | cuda.core.Host | None) – Hint for the source memory location. None means no hint.

  • dst_location_hint (cuda.core.Device | cuda.core.Host | None) – Hint for the destination memory location. None means no hint.

  • overlap_mode (MemcpyOverlapMode or str) – Hint for copy-engine / compute overlap. Only meaningful on integrated (Tegra) GPUs; on discrete GPUs the driver silently ignores it and a UserWarning is emitted. Default is "default".