Table of Contents

Class CudaGraphDiagnosticSnapshot

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Captures a bounded copied diagnostic snapshot for a CUDA graph. 捕获 CUDA graph 的有界复制型诊断快照。

public sealed class CudaGraphDiagnosticSnapshot
Inheritance
CudaGraphDiagnosticSnapshot
Inherited Members

Constructors

CudaGraphDiagnosticSnapshot(CudaGraphTopologySnapshot, IReadOnlyList<CudaGraphNodeSnapshot>, IReadOnlyList<CudaGraphNodeSnapshot>, IReadOnlyList<CudaGraphEdgeSnapshot>)

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

public CudaGraphDiagnosticSnapshot(CudaGraphTopologySnapshot topology, IReadOnlyList<CudaGraphNodeSnapshot> nodes, IReadOnlyList<CudaGraphNodeSnapshot> rootNodes, IReadOnlyList<CudaGraphEdgeSnapshot> edges)

Parameters

topology CudaGraphTopologySnapshot

The graph-level topology snapshot. graph 级拓扑快照。

nodes IReadOnlyList<CudaGraphNodeSnapshot>

The bounded node snapshots. 有界 node 快照。

rootNodes IReadOnlyList<CudaGraphNodeSnapshot>

The bounded root-node snapshots. 有界 root-node 快照。

edges IReadOnlyList<CudaGraphEdgeSnapshot>

The bounded edge snapshots. 有界 edge 快照。

Properties

Edges

Gets the bounded edge snapshots. 获取有界 edge 快照。

public IReadOnlyList<CudaGraphEdgeSnapshot> Edges { get; }

Property Value

IReadOnlyList<CudaGraphEdgeSnapshot>

Nodes

Gets the bounded node snapshots. 获取有界 node 快照。

public IReadOnlyList<CudaGraphNodeSnapshot> Nodes { get; }

Property Value

IReadOnlyList<CudaGraphNodeSnapshot>

RootNodes

Gets the bounded root-node snapshots. 获取有界 root-node 快照。

public IReadOnlyList<CudaGraphNodeSnapshot> RootNodes { get; }

Property Value

IReadOnlyList<CudaGraphNodeSnapshot>

Topology

Gets the graph-level topology snapshot. 获取 graph 级拓扑快照。

public CudaGraphTopologySnapshot Topology { get; }

Property Value

CudaGraphTopologySnapshot

Methods

ToString()

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

public override string ToString()

Returns

string

ToSummary()

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

public CudaGraphDiagnosticSummary ToSummary()

Returns

CudaGraphDiagnosticSummary

Remarks

This method only reads copied managed snapshot values. It does not call CUDA, does not expose native graph or node pointers, and does not promote local diagnostics to runtime proof. 此方法只读取已经复制到托管侧的快照值;不会调用 CUDA、不会暴露原生 graph 或 node 指针, 也不会将本地诊断晋级为 runtime proof。