Function cuGraphLaunch

Source
pub unsafe extern "C" fn cuGraphLaunch(
    hGraphExec: CUgraphExec,
    hStream: CUstream,
) -> CUresult
Expand description

\brief Launches an executable graph in a stream

Executes \p hGraphExec in \p hStream. Only one instance of \p hGraphExec may be executing at a time. Each launch is ordered behind both any previous work in \p hStream and any previous launches of \p hGraphExec. To execute a graph concurrently, it must be instantiated multiple times into multiple executable graphs.

If any allocations created by \p hGraphExec remain unfreed (from a previous launch) and \p hGraphExec was not instantiated with ::CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH, the launch will fail with ::CUDA_ERROR_INVALID_VALUE.

\param hGraphExec - Executable graph to launch \param hStream - Stream in which to launch the graph

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE \note_graph_thread_safety \notefnerr

\sa ::cuGraphInstantiate, ::cuGraphUpload, ::cuGraphExecDestroy