Function rcudnn_sys::cudaGraphClone[][src]

pub unsafe extern "C" fn cudaGraphClone(
    pGraphClone: *mut cudaGraph_t,
    originalGraph: cudaGraph_t
) -> cudaError_t
Expand description

\brief Clones a graph

This function creates a copy of \p originalGraph and returns it in \p pGraphClone. All parameters are copied into the cloned graph. The original graph may be modified after this call without affecting the clone.

Child graph nodes in the original graph are recursively copied into the clone.

\param pGraphClone - Returns newly created cloned graph \param originalGraph - Graph to clone

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorMemoryAllocation \note_graph_thread_safety \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphCreate, ::cudaGraphNodeFindInClone