Skip to main content

cudaGraphLaunch

Function cudaGraphLaunch 

Source
pub unsafe extern "C" fn cudaGraphLaunch(
    graphExec: cudaGraphExec_t,
    stream: cudaStream_t,
) -> cudaError_t
Expand 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 cudaErrorInvalidValue.

ยงParameters

  • graphExec: Executable graph to launch.
  • stream: Stream in which to launch the graph.