#[non_exhaustive]#[repr(u32)]pub enum GraphNodeType {
Show 14 variants
Kernel = 0,
Memcpy = 1,
Memset = 2,
Host = 3,
Graph = 4,
Empty = 5,
WaitEvent = 6,
EventRecord = 7,
ExternalSemaphoresSignal = 8,
ExternalSemaphoresWait = 9,
MemoryAlloc = 10,
MemoryFree = 11,
BatchMemOp = 12,
Conditional = 13,
}Expand description
Graph node types
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.
Kernel = 0
GPU kernel node.
Memcpy = 1
Memcpy node.
Memset = 2
Memset node.
Host = 3
Host (executable) node.
Graph = 4
Node which executes an embedded graph.
Empty = 5
Empty (no-op) node.
WaitEvent = 6
External event wait node.
EventRecord = 7
External event record node.
ExternalSemaphoresSignal = 8
External semaphore signal node.
ExternalSemaphoresWait = 9
External semaphore wait node.
MemoryAlloc = 10
Memory Allocation Node.
MemoryFree = 11
Memory Free Node.
BatchMemOp = 12
Batch memory-operation node; see Stream::memory_operations for what these nodes can do.
Conditional = 13
Conditional Node.
Trait Implementations§
Source§impl Clone for GraphNodeType
impl Clone for GraphNodeType
impl Copy for GraphNodeType
Source§impl Debug for GraphNodeType
impl Debug for GraphNodeType
Source§impl Display for GraphNodeType
impl Display for GraphNodeType
impl Eq for GraphNodeType
Source§impl From<GraphNodeType> for u32
impl From<GraphNodeType> for u32
Source§fn from(enum_value: GraphNodeType) -> Self
fn from(enum_value: GraphNodeType) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeType> for cudaGraphNodeType
impl From<GraphNodeType> for cudaGraphNodeType
Source§fn from(value: GraphNodeType) -> Self
fn from(value: GraphNodeType) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphNodeType
impl Hash for GraphNodeType
Source§impl PartialEq for GraphNodeType
impl PartialEq for GraphNodeType
impl StructuralPartialEq for GraphNodeType
Source§impl TryFrom<CUgraphNodeType_enum> for GraphNodeType
impl TryFrom<CUgraphNodeType_enum> for GraphNodeType
Source§impl TryFrom<u32> for GraphNodeType
impl TryFrom<u32> for GraphNodeType
Source§type Error = TryFromPrimitiveError<GraphNodeType>
type Error = TryFromPrimitiveError<GraphNodeType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GraphNodeType
impl TryFromPrimitive for GraphNodeType
const NAME: &'static str = "GraphNodeType"
type Primitive = u32
type Error = TryFromPrimitiveError<GraphNodeType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Forget for GraphNodeType
impl Freeze for GraphNodeType
impl Move for GraphNodeType
impl RefUnwindSafe for GraphNodeType
impl Send for GraphNodeType
impl Sync for GraphNodeType
impl Unpin for GraphNodeType
impl UnsafeUnpin for GraphNodeType
impl UnwindSafe for GraphNodeType
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.