Skip to main content

cudaGraphUpload

Function cudaGraphUpload 

Source
pub unsafe extern "C" fn cudaGraphUpload(
    graphExec: cudaGraphExec_t,
    stream: cudaStream_t,
) -> cudaError_t
Expand description

Uploads an executable graph in a stream.

Uploads graphExec to the device in stream without executing it. Uploads of the same graphExec will be serialized. Each upload is ordered behind both any previous work in stream and any previous launches of graphExec. Uses memory cached by stream to back the allocations owned by graphExec.

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.

§Parameters

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

§Return value

See also: cudaGraphInstantiate, cudaGraphLaunch, cudaGraphExecDestroy.