Class CudaGraphConditionalNode
Owns the bridge metadata for a CUDA conditional node and its CUDA-owned body graphs. 拥有 CUDA conditional node 及其 CUDA-owned body graph 的 bridge metadata。
public sealed class CudaGraphConditionalNode : IDisposable
- Inheritance
-
CudaGraphConditionalNode
- Implements
- Inherited Members
Properties
BodyCount
Gets the number of CUDA-owned body graphs. 获取 CUDA-owned body graph 的数量。
public uint BodyCount { get; }
Property Value
Node
Gets the graph-owned node token for diagnostics and dependency composition. 获取用于诊断和依赖组合的 graph-owned 节点 token。
public CudaGraphNode Node { get; }
Property Value
Type
Gets the conditional node kind. 获取条件节点类型。
public CudaGraphConditionalNodeType Type { get; }
Property Value
Methods
AddEmptyNode(uint)
Adds an empty node to one CUDA-owned conditional body. 向一个 CUDA-owned conditional body 添加空节点。
public CudaGraphNode AddEmptyNode(uint bodyIndex)
Parameters
bodyIndexuint
Returns
AddEmptyNodeAfter(uint, CudaGraphNode)
Adds an empty node after a body-local dependency node. 在 body-local 依赖节点后添加空节点。
public CudaGraphNode AddEmptyNodeAfter(uint bodyIndex, CudaGraphNode dependencyNode)
Parameters
bodyIndexuintdependencyNodeCudaGraphNode
Returns
Dispose()
Releases bridge metadata; CUDA destroys the node with its owning graph. 释放 bridge 元数据;CUDA 随所属 graph 销毁节点。
public void Dispose()
GetBodyEdgeCount(uint)
Gets the number of dependency edges in one conditional body. 获取一个 conditional body 中的依赖边数量。
public ulong GetBodyEdgeCount(uint bodyIndex)
Parameters
bodyIndexuint
Returns
GetBodyNodeCount(uint)
Gets the number of nodes in one conditional body. 获取一个 conditional body 中的节点数量。
public ulong GetBodyNodeCount(uint bodyIndex)
Parameters
bodyIndexuint
Returns
GetBodyRootNodeCount(uint)
Gets the number of root nodes in one conditional body. 获取一个 conditional body 中的根节点数量。
public ulong GetBodyRootNodeCount(uint bodyIndex)
Parameters
bodyIndexuint