pub unsafe extern "C" fn cuGraphConditionalHandleCreate(
pHandle_out: *mut CUgraphConditionalHandle,
hGraph: CUgraph,
ctx: CUcontext,
defaultLaunchValue: c_uint,
flags: c_uint,
) -> CUresultExpand 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.
Handles can only be set from the context with which they are associated.
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.hGraph: Graph which will contain the conditional node using this handle.ctx: Context for the handle and associated conditional node.defaultLaunchValue: Optional initial value for the conditional variable. Applied at the beginning of each graph execution if CU_GRAPH_COND_ASSIGN_DEFAULT is set inflags.flags: Currently must be CU_GRAPH_COND_ASSIGN_DEFAULT or 0.
§Return value
See also: cuGraphAddNode.