Table of Contents

Class CudaGraphEdgeSnapshot

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Captures copied diagnostics for a CUDA graph dependency edge. 捕获 CUDA graph 依赖边的复制型诊断信息。

public sealed class CudaGraphEdgeSnapshot
Inheritance
CudaGraphEdgeSnapshot
Inherited Members

Constructors

CudaGraphEdgeSnapshot(ulong, CudaGraphNode, CudaGraphNode, CudaGraphEdgeData, bool)

Initializes a CUDA graph edge snapshot. 初始化 CUDA graph edge 快照。

public CudaGraphEdgeSnapshot(ulong index, CudaGraphNode from, CudaGraphNode to, CudaGraphEdgeData edgeData, bool hasEdgeData)

Parameters

index ulong

The zero-based edge index. 从零开始的边索引。

from CudaGraphNode

The source graph-owned node value token. 源 graph-owned node 值 token。

to CudaGraphNode

The destination graph-owned node value token. 目标 graph-owned node 值 token。

edgeData CudaGraphEdgeData

The copied CUDA edge data when available. 可用时复制出的 CUDA edge data。

hasEdgeData bool

Whether edgeData is available. edgeData 是否可用。

Properties

EdgeData

Gets the copied CUDA edge data when available. 获取可用时复制出的 CUDA edge data。

public CudaGraphEdgeData EdgeData { get; }

Property Value

CudaGraphEdgeData

EdgeDataState

Gets a diagnostic state for edge-data availability. 获取 edge-data 可用性的诊断状态。

public string EdgeDataState { get; }

Property Value

string

From

Gets the source graph-owned node value token. 获取源 graph-owned node 值 token。

public CudaGraphNode From { get; }

Property Value

CudaGraphNode

FromText

Gets a diagnostic text representation of the source node token. 获取源 node token 的诊断文本表示。

public string FromText { get; }

Property Value

string

HasEdgeData

Gets whether copied CUDA edge data is available. 获取是否存在复制出的 CUDA edge data。

public bool HasEdgeData { get; }

Property Value

bool

Index

Gets the zero-based edge index. 获取从零开始的边索引。

public ulong Index { get; }

Property Value

ulong

To

Gets the destination graph-owned node value token. 获取目标 graph-owned node 值 token。

public CudaGraphNode To { get; }

Property Value

CudaGraphNode

ToText

Gets a diagnostic text representation of the destination node token. 获取目标 node token 的诊断文本表示。

public string ToText { get; }

Property Value

string

Methods

ToString()

Formats this snapshot for diagnostics. 将该快照格式化为诊断字符串。

public override string ToString()

Returns

string