#[non_exhaustive]#[repr(u32)]pub enum GraphKernelNodeAttributeId {
Cooperative = 2,
ClusterDimension = 4,
Priority = 8,
PreferredSharedMemoryCarveout = 14,
}Expand description
Identifiers for GraphKernelNodeAttribute values used by CUDA graph kernel nodes.
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.
Cooperative = 2
Identifies GraphKernelNodeAttribute::Cooperative.
ClusterDimension = 4
Identifies GraphKernelNodeAttribute::ClusterDimension.
Priority = 8
Identifies GraphKernelNodeAttribute::Priority.
Identifies GraphKernelNodeAttribute::PreferredSharedMemoryCarveout.
The value is a percentage in the range 0..=100 describing the preferred
shared-memory carveout for the launch. This is a hint, and the driver
may choose a different configuration if required.
Trait Implementations§
Source§impl Clone for GraphKernelNodeAttributeId
impl Clone for GraphKernelNodeAttributeId
Source§fn clone(&self) -> GraphKernelNodeAttributeId
fn clone(&self) -> GraphKernelNodeAttributeId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GraphKernelNodeAttributeId
Source§impl Debug for GraphKernelNodeAttributeId
impl Debug for GraphKernelNodeAttributeId
impl Eq for GraphKernelNodeAttributeId
Source§impl From<GraphKernelNodeAttributeId> for u32
impl From<GraphKernelNodeAttributeId> for u32
Source§fn from(enum_value: GraphKernelNodeAttributeId) -> Self
fn from(enum_value: GraphKernelNodeAttributeId) -> Self
Converts to this type from the input type.
Source§impl From<GraphKernelNodeAttributeId> for cudaLaunchAttributeID
impl From<GraphKernelNodeAttributeId> for cudaLaunchAttributeID
Source§fn from(value: GraphKernelNodeAttributeId) -> Self
fn from(value: GraphKernelNodeAttributeId) -> Self
Converts to this type from the input type.
Source§impl From<cudaLaunchAttributeID> for GraphKernelNodeAttributeId
impl From<cudaLaunchAttributeID> for GraphKernelNodeAttributeId
Source§fn from(value: cudaLaunchAttributeID) -> Self
fn from(value: cudaLaunchAttributeID) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphKernelNodeAttributeId
impl Hash for GraphKernelNodeAttributeId
Source§impl PartialEq for GraphKernelNodeAttributeId
impl PartialEq for GraphKernelNodeAttributeId
Source§fn eq(&self, other: &GraphKernelNodeAttributeId) -> bool
fn eq(&self, other: &GraphKernelNodeAttributeId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GraphKernelNodeAttributeId
Source§impl TryFrom<u32> for GraphKernelNodeAttributeId
impl TryFrom<u32> for GraphKernelNodeAttributeId
Source§type Error = TryFromPrimitiveError<GraphKernelNodeAttributeId>
type Error = TryFromPrimitiveError<GraphKernelNodeAttributeId>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GraphKernelNodeAttributeId
impl TryFromPrimitive for GraphKernelNodeAttributeId
const NAME: &'static str = "GraphKernelNodeAttributeId"
type Primitive = u32
type Error = TryFromPrimitiveError<GraphKernelNodeAttributeId>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for GraphKernelNodeAttributeId
impl RefUnwindSafe for GraphKernelNodeAttributeId
impl Send for GraphKernelNodeAttributeId
impl Sync for GraphKernelNodeAttributeId
impl Unpin for GraphKernelNodeAttributeId
impl UnsafeUnpin for GraphKernelNodeAttributeId
impl UnwindSafe for GraphKernelNodeAttributeId
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