Skip to main content

cuGraphConditionalHandleCreate

Function cuGraphConditionalHandleCreate 

Source
pub unsafe extern "C" fn cuGraphConditionalHandleCreate(
    pHandle_out: *mut CUgraphConditionalHandle,
    hGraph: CUgraph,
    ctx: CUcontext,
    defaultLaunchValue: c_uint,
    flags: c_uint,
) -> CUresult
Expand 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.

ยง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 in flags.
  • flags: Currently must be CU_GRAPH_COND_ASSIGN_DEFAULT or 0.