Table of Contents

Class CudaGraphExecNodeStateSnapshot

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Captures copied executable-state diagnostics for a CUDA graph node. 捕获 CUDA graph executable 中某个 node 的复制型执行状态诊断。

public sealed class CudaGraphExecNodeStateSnapshot
Inheritance
CudaGraphExecNodeStateSnapshot
Inherited Members

Constructors

CudaGraphExecNodeStateSnapshot(bool, ulong)

Initializes a CUDA graph executable node-state snapshot. 初始化 CUDA graph executable node 状态快照。

public CudaGraphExecNodeStateSnapshot(bool enabled, ulong flags)

Parameters

enabled bool

Whether the node is enabled in the executable graph. executable graph 中该节点是否启用。

flags ulong

The executable graph flags. 可执行图标志。

CudaGraphExecNodeStateSnapshot(ulong, CudaGraphNode, bool, ulong)

Initializes a CUDA graph executable node-state snapshot with node diagnostics. 使用 node 诊断信息初始化 CUDA graph executable node 状态快照。

public CudaGraphExecNodeStateSnapshot(ulong index, CudaGraphNode node, bool enabled, ulong flags)

Parameters

index ulong

The zero-based node index within the queried list. 查询列表中的从零开始节点索引。

node CudaGraphNode

The graph-owned node value token. graph 拥有的 node 值 token。

enabled bool

Whether the node is enabled in the executable graph. executable graph 中该节点是否启用。

flags ulong

The executable graph flags. 可执行图标志。

Properties

Enabled

Gets whether the node is enabled in the executable graph. 获取 executable graph 中该节点是否启用。

public bool Enabled { get; }

Property Value

bool

Flags

Gets the executable graph flags. 获取 executable graph flags。

public ulong Flags { get; }

Property Value

ulong

HasNode

Gets whether this snapshot includes the graph-owned node value token. 获取该快照是否包含 graph-owned node 值 token。

public bool HasNode { get; }

Property Value

bool

Index

Gets the zero-based node index within the queried list. 获取查询列表中的从零开始节点索引。

public ulong Index { get; }

Property Value

ulong

Node

Gets the graph-owned node value token when available. 获取可用时的 graph-owned node 值 token。

public CudaGraphNode Node { get; }

Property Value

CudaGraphNode

NodeText

Gets a diagnostic text representation of the node token when available. 获取可用时的 node token 诊断文本表示。

public string NodeText { get; }

Property Value

string

Methods

ToString()

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

public override string ToString()

Returns

string