Table of Contents

Struct CudaGraphNodeParamsDescriptor

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Describes copied, pointer-free CUDA graph node parameters. 描述复制出的、无指针暴露的 CUDA graph node 参数。

public readonly struct CudaGraphNodeParamsDescriptor
Inherited Members

Remarks

This descriptor intentionally excludes borrowed CUDA handles and native addresses. It is safe to expose on the public API surface. 该 descriptor 有意排除 borrowed CUDA handle 和原生地址,适合作为 public API 暴露。

Properties

ByteCount

Gets the copied byte count for 1D memcpy/memset descriptors when available. 在可用时获取 1D memcpy/memset descriptor 的复制字节数。

public ulong ByteCount { get; }

Property Value

ulong

Depth

Gets the copied depth for node parameters when available. 在可用时获取节点参数复制出的深度。

public ulong Depth { get; }

Property Value

ulong

DescriptorKind

Gets the descriptor kind used by this copied summary. 获取该复制型摘要使用的 descriptor 类型。

public CudaGraphNodeParamsDescriptorKind DescriptorKind { get; }

Property Value

CudaGraphNodeParamsDescriptorKind

ElementSize

Gets the copied memset element size when this is a memset descriptor. 在 memset descriptor 中获取复制出的元素大小。

public uint ElementSize { get; }

Property Value

uint

HasBorrowedHandleExposure

Gets whether this descriptor exposes borrowed handles or native pointers. This must remain false. 获取该 descriptor 是否暴露 borrowed handle 或原生指针;该值必须保持 false。

public bool HasBorrowedHandleExposure { get; }

Property Value

bool

HasCopiedParameters

Gets whether this descriptor includes copied node parameters. 获取该 descriptor 是否包含复制出的节点参数。

public bool HasCopiedParameters { get; }

Property Value

bool

HasEvent

Gets whether an event node has a caller-owned event without exposing the borrowed event handle. 获取 event node 是否引用调用方拥有的 event,但不暴露 borrowed event handle。

public bool HasEvent { get; }

Property Value

bool

Height

Gets the copied height for node parameters when available. 在可用时获取节点参数复制出的高度。

public ulong Height { get; }

Property Value

ulong

MemcpyKind

Gets the copied memcpy direction when this is a memcpy descriptor. 在 memcpy descriptor 中获取复制出的 memcpy 方向。

public CudaMemcpyKind MemcpyKind { get; }

Property Value

CudaMemcpyKind

NodeType

Gets the CUDA graph node type. 获取 CUDA graph node 类型。

public CudaGraphNodeType NodeType { get; }

Property Value

CudaGraphNodeType

Status

Gets the descriptor status text. 获取 descriptor 状态文本。

public string Status { get; }

Property Value

string

Value

Gets the copied memset value when this is a memset descriptor. 在 memset descriptor 中获取复制出的填充值。

public uint Value { get; }

Property Value

uint

Methods

Empty()

Creates a pointer-free descriptor for an empty node. 为 empty node 创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor Empty()

Returns

CudaGraphNodeParamsDescriptor

EventRecord(bool)

Creates a pointer-free descriptor for an event-record node. 为 event-record node 创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor EventRecord(bool hasEvent)

Parameters

hasEvent bool

Returns

CudaGraphNodeParamsDescriptor

EventWait(bool)

Creates a pointer-free descriptor for an event-wait node. 为 event-wait node 创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor EventWait(bool hasEvent)

Parameters

hasEvent bool

Returns

CudaGraphNodeParamsDescriptor

Memcpy(CudaGraphMemcpyNodeParameters)

Creates a pointer-free descriptor for a memcpy node. 为 memcpy node 创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor Memcpy(CudaGraphMemcpyNodeParameters parameters)

Parameters

parameters CudaGraphMemcpyNodeParameters

Returns

CudaGraphNodeParamsDescriptor

Memset(CudaGraphMemsetNodeParameters)

Creates a pointer-free descriptor for a memset node. 为 memset node 创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor Memset(CudaGraphMemsetNodeParameters parameters)

Parameters

parameters CudaGraphMemsetNodeParameters

Returns

CudaGraphNodeParamsDescriptor

ToString()

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

public override string ToString()

Returns

string

Unsupported(CudaGraphNodeType)

Creates a pointer-free descriptor for a node kind whose parameters are intentionally not exposed. 为参数尚未安全暴露的节点类型创建无指针 descriptor。

public static CudaGraphNodeParamsDescriptor Unsupported(CudaGraphNodeType nodeType)

Parameters

nodeType CudaGraphNodeType

Returns

CudaGraphNodeParamsDescriptor