#[non_exhaustive]#[repr(u32)]pub enum CUdevice_P2PAttribute_enum {
CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 1,
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 2,
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 3,
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 4,
}Expand description
P2P Attributes
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_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 1
< A relative value indicating the performance of the link between two devices
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 2
< P2P Access is enable
CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 3
< Atomic operation over the link supported
CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 4
< \deprecated use CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED instead
Implementations§
source§impl CUdevice_P2PAttribute_enum
impl CUdevice_P2PAttribute_enum
pub const CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED: CUdevice_P2PAttribute_enum = CUdevice_P2PAttribute_enum::CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED
Trait Implementations§
source§impl Clone for CUdevice_P2PAttribute_enum
impl Clone for CUdevice_P2PAttribute_enum
source§fn clone(&self) -> CUdevice_P2PAttribute_enum
fn clone(&self) -> CUdevice_P2PAttribute_enum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CUdevice_P2PAttribute_enum
impl Debug for CUdevice_P2PAttribute_enum
source§impl Hash for CUdevice_P2PAttribute_enum
impl Hash for CUdevice_P2PAttribute_enum
source§impl PartialEq for CUdevice_P2PAttribute_enum
impl PartialEq for CUdevice_P2PAttribute_enum
source§fn eq(&self, other: &CUdevice_P2PAttribute_enum) -> bool
fn eq(&self, other: &CUdevice_P2PAttribute_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUdevice_P2PAttribute_enum
impl Eq for CUdevice_P2PAttribute_enum
impl StructuralPartialEq for CUdevice_P2PAttribute_enum
Auto Trait Implementations§
impl Freeze for CUdevice_P2PAttribute_enum
impl RefUnwindSafe for CUdevice_P2PAttribute_enum
impl Send for CUdevice_P2PAttribute_enum
impl Sync for CUdevice_P2PAttribute_enum
impl Unpin for CUdevice_P2PAttribute_enum
impl UnwindSafe for CUdevice_P2PAttribute_enum
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more