cuda.core.typing.GraphConditionalType#

class cuda.core.typing.GraphConditionalType(
value,
names=<not given>,
*values,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)#

Conditional node flavor for GraphBuilder.

  • IF — body graph executes at most once based on a condition.

  • WHILE — body graph loops while the condition is true.

  • SWITCH — selects one child graph by an integer index.

IF: if

Conditional node flavor for GraphBuilder. * IF — body graph executes at most once based on a condition. * WHILE — body graph loops while the condition is true. * SWITCH — selects one child graph by an integer index.

WHILE: while

Conditional node flavor for GraphBuilder. * IF — body graph executes at most once based on a condition. * WHILE — body graph loops while the condition is true. * SWITCH — selects one child graph by an integer index.

SWITCH: switch

Conditional node flavor for GraphBuilder. * IF — body graph executes at most once based on a condition. * WHILE — body graph loops while the condition is true. * SWITCH — selects one child graph by an integer index.