pub unsafe extern "C" fn cudaGraphLaunch(
graphExec: cudaGraphExec_t,
stream: cudaStream_t,
) -> cudaError_tExpand description
Launches an executable graph in a stream.
Executes graphExec in stream. Only one instance of graphExec may be executing at a time. Each launch is ordered behind both any previous work in stream and any previous launches of graphExec. To execute a graph concurrently, it must be instantiated multiple times into multiple executable graphs.
If any allocations created by graphExec remain unfreed (from a previous launch) and graphExec was not instantiated with cudaGraphInstantiateFlagAutoFreeOnLaunch, the launch will fail with cudaError_t::CUDA_ERROR_INVALID_VALUE.
Note: Graph objects are not threadsafe. More here.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
§Parameters
graphExec: Executable graph to launch.stream: Stream in which to launch the graph.
§Return value
See also: cudaGraphInstantiate, cudaGraphUpload, cudaGraphExecDestroy.