Skip to main content

cudaStreamBeginRecaptureToGraph

Function cudaStreamBeginRecaptureToGraph 

Source
pub unsafe extern "C" fn cudaStreamBeginRecaptureToGraph(
    stream: cudaStream_t,
    mode: cudaStreamCaptureMode,
    graph: cudaGraph_t,
    callbackData: *mut cudaGraphRecaptureCallbackData,
) -> cudaError_t
Expand description

Begin graph capture on a stream to an existing graph.

Begin graph capture on stream to the existing graph. The node creation order while recapturing the graph must be identical to the original graph. The recapture will fail immediately for:

Any other node parameter mismatches during recapture can be configured to call the function provided in callbackFunc. The recapture will fail immediately if the callback returns anything other than cudaSuccess.

If the recapture fails for any reason, the graph will be in an undefined state and should be destroyed.

See cudaStreamBeginCapture for additional detail on beginning the capture.

ยงParameters

  • stream: Stream in which to initiate capture.
  • mode: Controls the interaction of this capture sequence with other API calls that are potentially unsafe. For more details see cudaThreadExchangeStreamCaptureMode.
  • graph: Existing CUDA graph to be captured into.
  • callbackData: Optional struct of callback data that will be invoked for all parameter mismatches from the original graph.