#[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
impl Copy for GraphKernelNodeAttributeId
Source§impl Debug for GraphKernelNodeAttributeId
impl Debug for GraphKernelNodeAttributeId
Source§impl Display for GraphKernelNodeAttributeId
impl Display 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 Hash for GraphKernelNodeAttributeId
impl Hash for GraphKernelNodeAttributeId
impl StructuralPartialEq for GraphKernelNodeAttributeId
Source§impl TryFrom<cudaLaunchAttributeID> for GraphKernelNodeAttributeId
impl TryFrom<cudaLaunchAttributeID> for GraphKernelNodeAttributeId
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: cudaLaunchAttributeID) -> Result<Self, UnknownEnumValue>
fn try_from(value: cudaLaunchAttributeID) -> Result<Self, UnknownEnumValue>
Performs the conversion.
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 Forget for GraphKernelNodeAttributeId
impl Freeze for GraphKernelNodeAttributeId
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.