cupy.cuda.PinnedMemoryPointer

class cupy.cuda.PinnedMemoryPointer(mem, Py_ssize_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) → Py_ssize_t

Attributes

mem
ptr