pub struct GraphHandle { /* private fields */ }Implementations§
Source§impl GraphHandle
impl GraphHandle
Sourcepub fn from_graph(graph: Arc<CudaGraph>, state: &Arc<DeviceState>) -> Self
pub fn from_graph(graph: Arc<CudaGraph>, state: &Arc<DeviceState>) -> Self
Wrap a manually-captured CudaGraph into a GraphHandle
with the current DeviceState generation.
pub fn generation(&self) -> u64
Sourcepub fn cu_graph(&self) -> CUgraph
pub fn cu_graph(&self) -> CUgraph
Underlying CUgraph handle. Used by Phase 3 callers that need
to call sys-level APIs (cuGraphAddChildGraphNode,
cuGraphDebugDotPrint, etc.).
§Safety
Returned value must not be destroyed; the handle is owned by
the wrapped CudaGraph.
Sourcepub fn cu_graph_exec(&self) -> CUgraphExec
pub fn cu_graph_exec(&self) -> CUgraphExec
Underlying CUgraphExec handle. Used by Phase 3 callers
(cuGraphExecUpdate_v2).
§Safety
Same as Self::cu_graph.
Trait Implementations§
Source§impl Clone for GraphHandle
impl Clone for GraphHandle
Source§fn clone(&self) -> GraphHandle
fn clone(&self) -> GraphHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Send for GraphHandle
impl Sync for GraphHandle
Auto Trait Implementations§
impl Freeze for GraphHandle
impl RefUnwindSafe for GraphHandle
impl Unpin for GraphHandle
impl UnsafeUnpin for GraphHandle
impl UnwindSafe for GraphHandle
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