pub enum GraphNode {
KernelLaunch {
function_name: String,
grid: (u32, u32, u32),
block: (u32, u32, u32),
shared_mem: u32,
},
Memcpy {
direction: MemcpyDirection,
size: usize,
},
Memset {
size: usize,
value: u8,
},
Empty,
}Expand description
A single operation node within a Graph.
Each variant represents a different type of GPU operation that can be recorded into a graph.
Variants§
KernelLaunch
A kernel launch with grid/block configuration.
Fields
Dynamic shared memory in bytes.
Memcpy
A memory copy operation.
Memset
A memset operation (fill device memory with a byte value).
Empty
An empty/no-op node used as a synchronisation barrier.
Trait Implementations§
impl Eq for GraphNode
impl StructuralPartialEq for GraphNode
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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