cuda.bindings._v2.driver.graph_conditional_handle_create#

cuda.bindings._v2.driver.graph_conditional_handle_create(
intptr_t h_graph,
intptr_t ctx,
unsigned int default_launch_value,
unsigned int flags,
) → uint64_t#

Create a conditional handle.

Creates a conditional handle associated with h_graph. 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:
  • h_graph (intptr_t) – Graph which will contain the conditional node using this handle.

  • ctx (intptr_t) – Context for the handle and associated conditional node.

  • default_launch_value (unsigned int) – 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 (unsigned int) – Currently must be CU_GRAPH_COND_ASSIGN_DEFAULT or 0.

Returns:

Pointer used to return the handle to the caller.

Return type:

uint64_t

See also

cuGraphConditionalHandleCreate