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
  • mem (PinnedMemory) – The device memory buffer.

  • ptr (int) – Pointer to the place within the buffer.

Methods

size(self)size_t
__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

Attributes

mem
ptr