pub struct RawExecutableGraph {
pub handle: cudaGraphExec_t,
pub context: Arc<Context>,
pub retained: RetainedResources,
pub source_graph: Option<UnboundGraph>,
pub source_graph_id: Option<GraphId>,
}Expand description
Raw ownership of an executable graph, its context, source graph, and resource dependencies.
Keep this value alive until native destruction, or re-adopt it with ExecutableGraph::from_raw.
Bind its context before native use and complete all launches before releasing these owners.
Fields§
§handle: cudaGraphExec_tNative executable graph handle.
context: Arc<Context>Context the executable graph belongs to.
retained: RetainedResourcesAllocations, modules, and events the executable graph’s nodes depend on.
source_graph: Option<UnboundGraph>Graph the executable was instantiated from, if it retains one.
source_graph_id: Option<GraphId>Identity of the source graph, which node updates check.
Trait Implementations§
Source§impl Debug for RawExecutableGraph
impl Debug for RawExecutableGraph
impl Send for RawExecutableGraph
impl Sync for RawExecutableGraph
Auto Trait Implementations§
impl !RefUnwindSafe for RawExecutableGraph
impl !UnwindSafe for RawExecutableGraph
impl Forget for RawExecutableGraph
impl Freeze for RawExecutableGraph
impl Move for RawExecutableGraph
impl Unpin for RawExecutableGraph
impl UnsafeUnpin for RawExecutableGraph
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