Struct CudaGraphEdgeWithData
Describes a CUDA graph dependency edge together with CUDA edge data. 描述带 CUDA edge data 的 CUDA graph 依赖边。
public readonly struct CudaGraphEdgeWithData
- Inherited Members
Constructors
CudaGraphEdgeWithData(CudaGraphNode, CudaGraphNode, CudaGraphEdgeData)
Initializes a dependency edge with CUDA edge data. 使用两个 CUDA graph 节点和 edge data 初始化一条依赖边。
public CudaGraphEdgeWithData(CudaGraphNode from, CudaGraphNode to, CudaGraphEdgeData edgeData)
Parameters
fromCudaGraphNodeThe source node. 源节点。
toCudaGraphNodeThe destination node. 目标节点。
edgeDataCudaGraphEdgeDataThe CUDA graph edge data. CUDA graph 边数据。
Properties
EdgeData
Gets the CUDA graph edge data. 获取 CUDA graph edge data。
public CudaGraphEdgeData EdgeData { get; }
Property Value
From
Gets the source node of the dependency edge. 获取依赖边的源 node。
public CudaGraphNode From { get; }
Property Value
To
Gets the destination node of the dependency edge. 获取依赖边的目标 node。
public CudaGraphNode To { get; }
Property Value
Methods
ToString()
Formats the dependency edge for diagnostics. 将依赖边格式化为便于诊断的字符串。
public override string ToString()