Struct CudaGraphNodeParamsDescriptor
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
Depth
Gets the copied depth for node parameters when available. 在可用时获取节点参数复制出的深度。
public ulong Depth { get; }
Property Value
DescriptorKind
Gets the descriptor kind used by this copied summary. 获取该复制型摘要使用的 descriptor 类型。
public CudaGraphNodeParamsDescriptorKind DescriptorKind { get; }
Property Value
ElementSize
Gets the copied memset element size when this is a memset descriptor. 在 memset descriptor 中获取复制出的元素大小。
public uint ElementSize { get; }
Property Value
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
HasCopiedParameters
Gets whether this descriptor includes copied node parameters. 获取该 descriptor 是否包含复制出的节点参数。
public bool HasCopiedParameters { get; }
Property Value
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
Height
Gets the copied height for node parameters when available. 在可用时获取节点参数复制出的高度。
public ulong Height { get; }
Property Value
MemcpyKind
Gets the copied memcpy direction when this is a memcpy descriptor. 在 memcpy descriptor 中获取复制出的 memcpy 方向。
public CudaMemcpyKind MemcpyKind { get; }
Property Value
NodeType
Gets the CUDA graph node type. 获取 CUDA graph node 类型。
public CudaGraphNodeType NodeType { get; }
Property Value
Status
Gets the descriptor status text. 获取 descriptor 状态文本。
public string Status { get; }
Property Value
Value
Gets the copied memset value when this is a memset descriptor. 在 memset descriptor 中获取复制出的填充值。
public uint Value { get; }
Property Value
Methods
Empty()
Creates a pointer-free descriptor for an empty node. 为 empty node 创建无指针 descriptor。
public static CudaGraphNodeParamsDescriptor Empty()
Returns
EventRecord(bool)
Creates a pointer-free descriptor for an event-record node. 为 event-record node 创建无指针 descriptor。
public static CudaGraphNodeParamsDescriptor EventRecord(bool hasEvent)
Parameters
hasEventbool
Returns
EventWait(bool)
Creates a pointer-free descriptor for an event-wait node. 为 event-wait node 创建无指针 descriptor。
public static CudaGraphNodeParamsDescriptor EventWait(bool hasEvent)
Parameters
hasEventbool
Returns
Memcpy(CudaGraphMemcpyNodeParameters)
Creates a pointer-free descriptor for a memcpy node. 为 memcpy node 创建无指针 descriptor。
public static CudaGraphNodeParamsDescriptor Memcpy(CudaGraphMemcpyNodeParameters parameters)
Parameters
parametersCudaGraphMemcpyNodeParameters
Returns
Memset(CudaGraphMemsetNodeParameters)
Creates a pointer-free descriptor for a memset node. 为 memset node 创建无指针 descriptor。
public static CudaGraphNodeParamsDescriptor Memset(CudaGraphMemsetNodeParameters parameters)
Parameters
parametersCudaGraphMemsetNodeParameters
Returns
ToString()
Formats this descriptor for diagnostics. 将该 descriptor 格式化为诊断字符串。
public override string ToString()
Returns
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
nodeTypeCudaGraphNodeType