cuda.core.graph.GraphCondition#
- class cuda.core.graph.GraphCondition#
A condition variable for conditional graph nodes.
Created by
GraphDefinition.create_condition()(orGraphBuilder.create_condition()) and passed to conditional-node builder methods (if_then(),if_else(),while_loop(),switch()). The underlying value is set at runtime by device code viacudaGraphSetConditional.A
GraphConditionmay be passed directly as a kernel argument tolaunch(): the launcher unwraps it to the underlyingCUgraphConditionalHandlevalue so device code can update the condition.Methods
- __init__()#
Attributes
- handle#
driver.CUgraphConditionalHandle
The raw CUgraphConditionalHandle as an int.