#[non_exhaustive]
#[repr(u32)]
pub enum CUpointer_attribute_enum {
Show 20 variants CU_POINTER_ATTRIBUTE_CONTEXT = 1, CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2, CU_POINTER_ATTRIBUTE_DEVICE_POINTER = 3, CU_POINTER_ATTRIBUTE_HOST_POINTER = 4, CU_POINTER_ATTRIBUTE_P2P_TOKENS = 5, CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6, CU_POINTER_ATTRIBUTE_BUFFER_ID = 7, CU_POINTER_ATTRIBUTE_IS_MANAGED = 8, CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9, CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = 10, CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11, CU_POINTER_ATTRIBUTE_RANGE_SIZE = 12, CU_POINTER_ATTRIBUTE_MAPPED = 13, CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14, CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15, CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16, CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17, CU_POINTER_ATTRIBUTE_MAPPING_SIZE = 18, CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR = 19, CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID = 20,
}
Expand description

Pointer information

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CU_POINTER_ATTRIBUTE_CONTEXT = 1

< The ::CUcontext on which a pointer was allocated or registered

§

CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2

< The ::CUmemorytype describing the physical location of a pointer

§

CU_POINTER_ATTRIBUTE_DEVICE_POINTER = 3

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

§

CU_POINTER_ATTRIBUTE_HOST_POINTER = 4

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

§

CU_POINTER_ATTRIBUTE_P2P_TOKENS = 5

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

§

CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6

< Synchronize every synchronous memory operation initiated on this region

§

CU_POINTER_ATTRIBUTE_BUFFER_ID = 7

< A process-wide unique ID for an allocated memory region

§

CU_POINTER_ATTRIBUTE_IS_MANAGED = 8

< Indicates if the pointer points to managed memory

§

CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9

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

§

CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = 10

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

§

CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11

< Starting address for this requested pointer

§

CU_POINTER_ATTRIBUTE_RANGE_SIZE = 12

< Size of the address range for this requested pointer

§

CU_POINTER_ATTRIBUTE_MAPPED = 13

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

§

CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14

< Bitmask of allowed ::CUmemAllocationHandleType for this allocation

§

CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15

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

§

CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16

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

§

CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17

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

§

CU_POINTER_ATTRIBUTE_MAPPING_SIZE = 18

< Size of the actual underlying mapping that the pointer belongs to

§

CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR = 19

< The start address of the mapping that the pointer belongs to

§

CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID = 20

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

Trait Implementations§

source§

impl Clone for CUpointer_attribute_enum

source§

fn clone(&self) -> CUpointer_attribute_enum

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CUpointer_attribute_enum

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for CUpointer_attribute_enum

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for CUpointer_attribute_enum

source§

fn eq(&self, other: &CUpointer_attribute_enum) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CUpointer_attribute_enum

source§

impl Eq for CUpointer_attribute_enum

source§

impl StructuralPartialEq for CUpointer_attribute_enum

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.