cuda.bindings._v2.driver.ExternalMemoryHandleDesc_v1#

class cuda.bindings._v2.driver.ExternalMemoryHandleDesc_v1#

Empty-initialize an instance of CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1.

See also

CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

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

from_data(data)

Create an ExternalMemoryHandleDesc_v1 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an ExternalMemoryHandleDesc_v1 instance wrapping the given pointer.

Attributes

flags_

int:

handle

_py_anon_pod18:

ptr

Get the pointer address to the data as Python int.

size_

int:

type

int: