Table of Contents

Struct CudaGraphNode

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Identifies a CUDA graph node owned by a CudaGraph. 标识一个由 CudaGraph 拥有的 CUDA graph node。

public readonly struct CudaGraphNode : IEquatable<CudaGraphNode>
Implements
Inherited Members

Remarks

The token is graph-owned and must not be destroyed independently. 该 token 由 graph 拥有,不能被单独销毁。

Properties

IsNull

Gets whether this node token is empty. 获取当前 node token 是否为空。

public bool IsNull { get; }

Property Value

bool

Methods

Equals(CudaGraphNode)

Compares two node tokens for equality. 比较两个 node token 是否相等。

public bool Equals(CudaGraphNode other)

Parameters

other CudaGraphNode

The other node token. 另一个 node token。

Returns

bool

true when both tokens identify the same node. 当两个 token 标识同一节点时返回 true

Equals(object?)

Compares the current node token with another object. 将当前 node token 与另一个对象进行比较。

public override bool Equals(object? obj)

Parameters

obj object

The object to compare. 要比较的对象。

Returns

bool

true when the object is an equal CudaGraphNode. 当对象是相等的 CudaGraphNode 时返回 true

GetHashCode()

Returns a hash code for the node token. 返回当前 node token 的哈希代码。

public override int GetHashCode()

Returns

int

ToString()

Formats the node token as hexadecimal text. 将 node token 格式化为十六进制文本。

public override string ToString()

Returns

string

Operators

operator ==(CudaGraphNode, CudaGraphNode)

Returns whether two node tokens are equal. 返回两个 node token 是否相等。

public static bool operator ==(CudaGraphNode left, CudaGraphNode right)

Parameters

left CudaGraphNode
right CudaGraphNode

Returns

bool

operator !=(CudaGraphNode, CudaGraphNode)

Returns whether two node tokens are not equal. 返回两个 node token 是否不相等。

public static bool operator !=(CudaGraphNode left, CudaGraphNode right)

Parameters

left CudaGraphNode
right CudaGraphNode

Returns

bool