Table of Contents

Property CurrentProcessGpuMemoryUsedBytes

Namespace
LMKit.Hardware.Gpu
Assembly
LM-Kit.NET.dll

CurrentProcessGpuMemoryUsedBytes

VRAM (in bytes) currently allocated on this device by the current OS process. Returns 0 when it cannot be obtained, including on a multi-GPU host, where a reading cannot be attributed to one device.

public ulong CurrentProcessGpuMemoryUsedBytes { get; }

Property Value

ulong

Remarks

From NVML (nvmlDeviceGetComputeRunningProcesses_v3) on CUDA backends, otherwise from the OS: the Windows GPU Process Memory counter, or the resident VRAM in this process's Linux DRM fdinfo.

Share