Table of Contents

Class CudaGraphExecDiagnosticSnapshot

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Captures copied executable-state diagnostics for multiple CUDA graph nodes. 捕获多个 CUDA graph node 的复制型 executable 状态诊断。

public sealed class CudaGraphExecDiagnosticSnapshot
Inheritance
CudaGraphExecDiagnosticSnapshot
Inherited Members

Constructors

CudaGraphExecDiagnosticSnapshot(IReadOnlyList<CudaGraphExecNodeStateSnapshot>)

Initializes a CUDA graph executable diagnostic snapshot. 初始化 CUDA graph executable 诊断快照。

public CudaGraphExecDiagnosticSnapshot(IReadOnlyList<CudaGraphExecNodeStateSnapshot> nodeStates)

Parameters

nodeStates IReadOnlyList<CudaGraphExecNodeStateSnapshot>

The copied node-state snapshots. 复制出的 node 状态快照。

Properties

NodeStates

Gets the copied node-state snapshots. 获取复制出的 node 状态快照。

public IReadOnlyList<CudaGraphExecNodeStateSnapshot> NodeStates { get; }

Property Value

IReadOnlyList<CudaGraphExecNodeStateSnapshot>

Methods

ToString()

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

public override string ToString()

Returns

string

ToSummary()

Converts this executable graph diagnostic snapshot into a compact pointer-free summary. 将当前 executable graph 诊断快照转换为紧凑、无指针逃逸的摘要。

public CudaGraphExecDiagnosticSummary ToSummary()

Returns

CudaGraphExecDiagnosticSummary

Remarks

This method reads copied managed node-state snapshots only. It does not call CUDA and does not expose native graph executable or node pointers. 此方法只读取已复制的托管 node-state snapshot,不调用 CUDA,也不暴露原生 graph executable 或 node 指针。