pub unsafe extern "C" fn cudaGraphConditionalHandleCreate_v2(
pHandle_out: *mut cudaGraphConditionalHandle,
graph: cudaGraph_t,
ctx: cudaExecutionContext_t,
defaultLaunchValue: c_uint,
flags: c_uint,
) -> cudaError_tExpand description
Create a conditional handle.
Creates a conditional handle associated with hGraph.
The conditional handle must be associated with a conditional node in this graph or one of its children.
Handles not associated with a conditional node may cause graph instantiation to fail.
Note: Graph objects are not threadsafe. More here.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
pHandle_out: Pointer used to return the handle to the caller.graph: Graph which will contain the conditional node using this handle.ctx: Execution context for the handle and associated conditional node. If NULL, current context will be used.defaultLaunchValue: Optional initial value for the conditional variable. Applied at the beginning of each graph execution if cudaGraphCondAssignDefault is set inflags.flags: Currently must be cudaGraphCondAssignDefault or 0.
§Return value
CUDA_SUCCESS, cudaError_enum::CUDA_ERROR_INVALID_VALUE, cudaError_enum::CUDA_ERROR_NOT_SUPPORTED.
See also: cuGraphAddNode.