7.7. cudaConditionalNodeParams Struct Reference

[Data types used by CUDA Runtime]

CUDA conditional node parameters

Public Variables

cudaGraphConditionalHandle handle
cudaGraph_t*phGraph_out
unsigned int  size
enumcudaGraphConditionalNodeType type

Variables

cudaGraphConditionalHandlecudaConditionalNodeParams::handle [inherited]

Conditional node handle. Handles must be created in advance of creating the node using cudaGraphConditionalHandleCreate.

cudaGraph_t* * cudaConditionalNodeParams::phGraph_out [inherited]

CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the conditional node. The contents of the graph(s) are subject to the following constraints:

  • Allowed node types are kernel nodes, empty nodes, child graphs, memsets, memcopies, and conditionals. This applies recursively to child graphs and conditional bodies.

  • All kernels, including kernels in nested conditionals or child graphs at any level, must belong to the same CUDA context.

These graphs may be populated using graph node creation APIs or cudaStreamBeginCaptureToGraph.

unsigned int cudaConditionalNodeParams::size [inherited]

Size of graph output array. Must be 1 for WHILE nodes, 1 or 2 for IF nodes, and >0 for SWITCH nodes.

enumcudaGraphConditionalNodeTypecudaConditionalNodeParams::type [inherited]

Type of conditional node.