#[non_exhaustive]#[repr(u8)]pub enum GraphDependencyType {
Default = 0,
Programmatic = 1,
}Expand description
Dependency types applied to CUDA graph edges.
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.
Default = 0
This is an ordinary dependency.
Programmatic = 1
This dependency type allows the downstream kernel to synchronize on the upstream grid from device code.
It may only be used between kernel nodes, with the programmatic or launch-order outgoing port.
Trait Implementations§
Source§impl Clone for GraphDependencyType
impl Clone for GraphDependencyType
impl Copy for GraphDependencyType
Source§impl Debug for GraphDependencyType
impl Debug for GraphDependencyType
Source§impl Display for GraphDependencyType
impl Display for GraphDependencyType
impl Eq for GraphDependencyType
Source§impl From<GraphDependencyType> for u8
impl From<GraphDependencyType> for u8
Source§fn from(enum_value: GraphDependencyType) -> Self
fn from(enum_value: GraphDependencyType) -> Self
Converts to this type from the input type.
Source§impl From<GraphDependencyType> for CUgraphDependencyType
impl From<GraphDependencyType> for CUgraphDependencyType
Source§fn from(value: GraphDependencyType) -> Self
fn from(value: GraphDependencyType) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphDependencyType
impl Hash for GraphDependencyType
Source§impl PartialEq for GraphDependencyType
impl PartialEq for GraphDependencyType
impl StructuralPartialEq for GraphDependencyType
Source§impl TryFrom<CUgraphDependencyType_enum> for GraphDependencyType
impl TryFrom<CUgraphDependencyType_enum> for GraphDependencyType
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: CUgraphDependencyType) -> Result<Self, UnknownEnumValue>
fn try_from(value: CUgraphDependencyType) -> Result<Self, UnknownEnumValue>
Performs the conversion.
Source§impl TryFrom<u8> for GraphDependencyType
impl TryFrom<u8> for GraphDependencyType
Source§type Error = TryFromPrimitiveError<GraphDependencyType>
type Error = TryFromPrimitiveError<GraphDependencyType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GraphDependencyType
impl TryFromPrimitive for GraphDependencyType
const NAME: &'static str = "GraphDependencyType"
type Primitive = u8
type Error = TryFromPrimitiveError<GraphDependencyType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Forget for GraphDependencyType
impl Freeze for GraphDependencyType
impl Move for GraphDependencyType
impl RefUnwindSafe for GraphDependencyType
impl Send for GraphDependencyType
impl Sync for GraphDependencyType
impl Unpin for GraphDependencyType
impl UnsafeUnpin for GraphDependencyType
impl UnwindSafe for GraphDependencyType
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.