cupy.cuda.PinnedMemoryPointer

class cupy.cuda.PinnedMemoryPointer(mem, ptrdiff_t offset)

Pointer of a pinned memory.

An instance of this class holds a reference to the original memory buffer and a pointer to a place within this buffer.

Parameters
  • mem (PinnedMemory) – The device memory buffer.

  • offset (int) – An offset from the head of the buffer to the place this pointer refers.

Variables

Methods

size(self) → size_t

Attributes

mem
ptr