gpumemoryview#

class pylibcudf.gpumemoryview.gpumemoryview(obj)#

Minimal representation of a memory buffer.

This class aspires to be a GPU equivalent of memoryview for any objects exposing a CUDA Array Interface. It will be expanded to encompass more memoryview functionality over time.

Attributes

size

gpumemoryview.size: int

cai

nbytes

obj

ptr

size#

gpumemoryview.size: int

Size of the memory region in bytes (Span protocol).

This is an alias for nbytes to satisfy the Span protocol.