Class CudaDeviceGraphMemoryInfo
Captures graph-memory allocator counters for one CUDA device. 捕获单个 CUDA 设备的 graph memory 分配器计数。
public sealed class CudaDeviceGraphMemoryInfo
- Inheritance
-
CudaDeviceGraphMemoryInfo
- Inherited Members
Constructors
CudaDeviceGraphMemoryInfo(int, ulong, ulong, ulong, ulong)
Creates a CUDA graph-memory snapshot. 创建 CUDA graph memory 快照。
public CudaDeviceGraphMemoryInfo(int deviceOrdinal, ulong usedMemoryCurrentBytes, ulong usedMemoryHighBytes, ulong reservedMemoryCurrentBytes, ulong reservedMemoryHighBytes)
Parameters
deviceOrdinalintusedMemoryCurrentBytesulongusedMemoryHighBytesulongreservedMemoryCurrentBytesulongreservedMemoryHighBytesulong
Properties
DeviceOrdinal
Gets the CUDA device ordinal. 获取 CUDA 设备序号。
public int DeviceOrdinal { get; }
Property Value
ReservedMemoryCurrentBytes
Gets bytes currently reserved by the CUDA graphs asynchronous allocator. 获取 CUDA graphs 异步分配器当前保留的字节数。
public ulong ReservedMemoryCurrentBytes { get; }
Property Value
ReservedMemoryHighBytes
Gets the high watermark of reserved graph-memory bytes. 获取 graph memory 保留字节数的峰值。
public ulong ReservedMemoryHighBytes { get; }
Property Value
UsedMemoryCurrentBytes
Gets bytes currently associated with CUDA graphs. 获取当前与 CUDA graphs 关联的字节数。
public ulong UsedMemoryCurrentBytes { get; }
Property Value
UsedMemoryHighBytes
Gets the high watermark of bytes associated with CUDA graphs. 获取与 CUDA graphs 关联字节数的峰值。
public ulong UsedMemoryHighBytes { get; }
Property Value
Methods
ToString()
Returns a compact graph-memory summary. 返回紧凑的 graph memory 摘要。
public override string ToString()