Skip to main content

Module pointer

Module pointer 

Source
Expand description

Pointer attribute queries (cuPointerGetAttribute).

Enums§

MemoryType
Memory “kind” returned by CUpointer_attribute::MEMORY_TYPE.

Functions§

device_ordinal
Query the device ordinal this allocation was created on.
is_managed
Query whether a pointer refers to managed (unified) memory.
memory_type
Query the memory type of a device pointer.
range_attribute_raw
Query a single attribute on a managed-memory range.
range_attributes_batched
Batched range-attribute query. data[i] has size data_sizes[i].
range_size
Query the size (bytes) of the range this pointer sits inside.
raw_attribute
Raw pointer-attribute query. attribute is one of baracuda_cuda_sys::types::CUpointer_attribute; the caller must provide a writable out of the correct size for that attribute.
raw_attributes_batched
Batched pointer-attribute query. For each attribute in attributes there must be a matching writable slot in data sized for that attribute’s value type.
set_attribute_raw
Set a single pointer attribute (typically SYNC_MEMOPS).