Table of Contents

Class CudaGraphMemoryAllocation

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Owns pointer-free bridge metadata for a CUDA graph memory-allocation node. 拥有 CUDA graph memory-allocation node 的无指针 bridge 元数据。

public sealed class CudaGraphMemoryAllocation : IDisposable
Inheritance
CudaGraphMemoryAllocation
Implements
Inherited Members

Remarks

The allocation exists only while an executable graph is running. This wrapper never exposes the CUDA device address and can only be consumed by its owning CudaGraph. 该分配只在 executable graph 执行期间存在。本 wrapper 不公开 CUDA device address,且只能由所属 CudaGraph 使用。

Properties

DeviceOrdinal

Gets the CUDA device ordinal used by the allocation node. 获取 allocation node 使用的 CUDA device ordinal。

public int DeviceOrdinal { get; }

Property Value

int

IsDisposed

Gets whether this bridge metadata wrapper has been disposed. 获取 bridge 元数据 wrapper 是否已释放。

public bool IsDisposed { get; }

Property Value

bool

IsFreeNodeAdded

Gets whether a matching memory-free node has been added. 获取是否已添加匹配的 memory-free node。

public bool IsFreeNodeAdded { get; }

Property Value

bool

SizeInBytes

Gets the requested allocation size in bytes. 获取请求的分配字节数。

public int SizeInBytes { get; }

Property Value

int

Methods

Dispose()

Releases bridge metadata. CUDA graph nodes remain owned by the graph. 释放 bridge 元数据;CUDA graph nodes 仍由 graph 拥有。

public void Dispose()