Skip to main content

cudaGraphExecGetFlags

Function cudaGraphExecGetFlags 

Source
pub unsafe extern "C" fn cudaGraphExecGetFlags(
    graphExec: cudaGraphExec_t,
    flags: *mut c_ulonglong,
) -> cudaError_t
Expand description

Query the instantiation flags of an executable graph.

Returns the flags that were passed to instantiation for the given executable graph. cudaGraphInstantiateFlagUpload will not be returned by this API as it does not affect the resulting executable graph.

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: The executable graph to query.
  • flags: Returns the instantiation flags.

§Return value

See also: cudaGraphInstantiate, cudaGraphInstantiateWithFlags, cudaGraphInstantiateWithParams.