Class GpuMemoryInfo
- Namespace
- Orleans.GpuBridge.Abstractions.Models
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Represents GPU memory information and statistics
[GenerateSerializer]
[Immutable]
public sealed record GpuMemoryInfo : IEquatable<GpuMemoryInfo>
- Inheritance
-
GpuMemoryInfo
- Implements
- Inherited Members
Properties
AllocatedMemoryBytes
Gets the currently allocated memory on the GPU in bytes
[Id(1)]
public long AllocatedMemoryBytes { get; init; }
Property Value
BufferMemoryBytes
Gets the memory used by buffers in bytes
[Id(5)]
public long BufferMemoryBytes { get; init; }
Property Value
DeviceIndex
Gets the device index this memory info belongs to
[Id(10)]
public int DeviceIndex { get; init; }
Property Value
DeviceName
Gets the device name
[Id(11)]
public string DeviceName { get; init; }
Property Value
Empty
Creates an empty GpuMemoryInfo instance
public static GpuMemoryInfo Empty { get; }
Property Value
FragmentationPercentage
Gets the memory fragmentation percentage (0-100)
[Id(7)]
public double FragmentationPercentage { get; init; }
Property Value
FreeMemoryBytes
Gets the free memory available on the GPU in bytes
[Id(2)]
public long FreeMemoryBytes { get; init; }
Property Value
PersistentKernelMemoryBytes
Gets the memory used by persistent kernels in bytes
[Id(4)]
public long PersistentKernelMemoryBytes { get; init; }
Property Value
ReservedMemoryBytes
Gets the reserved memory on the GPU in bytes
[Id(3)]
public long ReservedMemoryBytes { get; init; }
Property Value
TextureMemoryBytes
Gets the memory used by textures in bytes
[Id(6)]
public long TextureMemoryBytes { get; init; }
Property Value
Timestamp
Gets the timestamp when this information was captured
[Id(9)]
public DateTime Timestamp { get; init; }
Property Value
TotalMemoryBytes
Gets the total memory available on the GPU in bytes
[Id(0)]
public long TotalMemoryBytes { get; init; }
Property Value
UtilizationPercentage
Gets the memory utilization percentage (0-100)
[Id(8)]
public double UtilizationPercentage { get; init; }
Property Value
Methods
Create(long, long, int, string)
Creates a new instance of GpuMemoryInfo with calculated derived values
public static GpuMemoryInfo Create(long totalBytes, long allocatedBytes, int deviceIndex = 0, string deviceName = "")