cuda.bindings._v2.driver.ArrayDescriptor_v2#

class cuda.bindings._v2.driver.ArrayDescriptor_v2#

Empty-initialize an instance of CUDA_ARRAY_DESCRIPTOR_v2.

See also

CUDA_ARRAY_DESCRIPTOR_v2

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

Create an ArrayDescriptor_v2 instance with the memory from the given buffer.

from_data(data)

Create an ArrayDescriptor_v2 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an ArrayDescriptor_v2 instance wrapping the given pointer.

Attributes

format

int:

height

int:

num_channels

int:

ptr

Get the pointer address to the data as Python int.

width

int: