Class CudaMemoryInfo
Reports CUDA device memory availability for the current device. 报告当前 CUDA 设备的显存可用性。
public sealed class CudaMemoryInfo
- Inheritance
-
CudaMemoryInfo
- Inherited Members
Constructors
CudaMemoryInfo(ulong, ulong)
Creates a CUDA memory information snapshot. 创建 CUDA 显存信息快照。
public CudaMemoryInfo(ulong freeBytes, ulong totalBytes)
Parameters
freeBytesulongFree device memory in bytes. 空闲显存字节数。
totalBytesulongTotal device memory in bytes. 总显存字节数。
Properties
FreeBytes
Gets free device memory in bytes. 获取空闲显存字节数。
public ulong FreeBytes { get; }
Property Value
FreeRatio
Gets free device memory as a ratio in the range 0 to 1. 获取空闲显存比例,范围为 0 到 1。
public double FreeRatio { get; }
Property Value
TotalBytes
Gets total device memory in bytes. 获取总显存字节数。
public ulong TotalBytes { get; }
Property Value
UsedBytes
Gets used device memory in bytes. 获取已使用显存字节数。
public ulong UsedBytes { get; }
Property Value
UsedRatio
Gets used device memory as a ratio in the range 0 to 1. 获取已使用显存比例,范围为 0 到 1。
public double UsedRatio { get; }