cuda.bindings._v2.driver.PointerAttribute#

class cuda.bindings._v2.driver.PointerAttribute(value: int)#

Pointer information

See CUpointer_attribute.

CONTEXT: 1

The CUcontext on which a pointer was allocated or registered

MEMORY_TYPE: 2

The CUmemorytype describing the physical location of a pointer

DEVICE_POINTER: 3

The address at which a pointer’s memory may be accessed on the device

HOST_POINTER: 4

The address at which a pointer’s memory may be accessed on the host

P2P_TOKENS: 5

A pair of tokens for use with the nv-p2p.h Linux kernel interface

SYNC_MEMOPS: 6

Synchronize every synchronous memory operation initiated on this region

BUFFER_ID: 7

A process-wide unique ID for an allocated memory region

IS_MANAGED: 8

Indicates if the pointer points to managed memory

DEVICE_ORDINAL: 9

A device ordinal of a device on which a pointer was allocated or registered

IS_LEGACY_CUDA_IPC_CAPABLE: 10

1 if this pointer maps to an allocation that is suitable for cudaIpcGetMemHandle, 0 otherwise

RANGE_START_ADDR: 11

Starting address for this requested pointer

RANGE_SIZE: 12

Size of the address range for this requested pointer

MAPPED: 13

1 if this pointer is in a valid address range that is mapped to a backing allocation, 0 otherwise

ALLOWED_HANDLE_TYPES: 14

Bitmask of allowed CUmemAllocationHandleType for this allocation

IS_GPU_DIRECT_RDMA_CAPABLE: 15

1 if the memory this pointer is referencing can be used with the GPUDirect RDMA API

ACCESS_FLAGS: 16

Returns the access flags the device associated with the current context has on the corresponding memory referenced by the pointer given

MEMPOOL_HANDLE: 17

Returns the mempool handle for the allocation if it was allocated from a mempool. Otherwise returns NULL.

MAPPING_SIZE: 18

Size of the actual underlying mapping that the pointer belongs to

MAPPING_BASE_ADDR: 19

The start address of the mapping that the pointer belongs to

MEMORY_BLOCK_ID: 20

A process-wide unique id corresponding to the physical allocation the pointer belongs to

IS_HW_DECOMPRESS_CAPABLE: 21

Returns in *data a boolean that indicates whether the pointer points to memory that is capable to be used for hardware accelerated decompression.

LOCALITY_DOMAIN_ORDINAL: 22

Returns in *data an integer representing the locality domain ordinal of the memory allocation, or -1 if the allocation is not localized to a locality domain.