cuda.core.graph.GraphCondition#

class cuda.core.graph.GraphCondition#

A condition variable for conditional graph nodes.

Created by GraphDefinition.create_condition() (or GraphBuilder.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 via cudaGraphSetConditional.

A GraphCondition may be passed directly as a kernel argument to launch(): the launcher unwraps it to the underlying CUgraphConditionalHandle value so device code can update the condition.

Methods

__init__()#

Attributes

handle#

driver.CUgraphConditionalHandle

The raw CUgraphConditionalHandle as an int.