pub struct RawGraph { /* private fields */ }Implementations§
Source§impl RawGraph
impl RawGraph
Sourcepub unsafe fn from_raw(handle: cudaGraph_t) -> Result<Self>
pub unsafe fn from_raw(handle: cudaGraph_t) -> Result<Self>
Sourcepub unsafe fn create() -> Result<Self>
pub unsafe fn create() -> Result<Self>
Creates an empty raw graph without a Singe context association.
Prefer Context::create_graph for ordinary Singe code. Raw graphs do
not model context association, so the caller must keep CUDA context,
node, executable update, upload, and launch relationships coherent.
§Safety
The returned graph has no modeled CUDA context association. The caller must ensure every node, kernel, memory operand, child graph, executable update, upload, and launch is used with the correct CUDA context.
pub fn as_raw(&self) -> cudaGraph_t
Sourcepub fn into_raw(self) -> cudaGraph_t
pub fn into_raw(self) -> cudaGraph_t
Consumes the graph and returns the raw CUDA graph handle without destroying it.
The caller becomes responsible for eventually destroying the returned handle with CUDA.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawGraph
impl RefUnwindSafe for RawGraph
impl Send for RawGraph
impl Sync for RawGraph
impl Unpin for RawGraph
impl UnsafeUnpin for RawGraph
impl UnwindSafe for RawGraph
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