Table of Contents

Property GpuUtilizationPercent

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

GpuUtilizationPercent

Gets the current GPU compute utilization as a percentage (0-100), or -1 when it cannot be obtained.

public int GpuUtilizationPercent { get; }

Property Value

int

Remarks

On CUDA backends this is the NVML "gpu" utilization rate: the percent of time over the last sample period during which one or more kernels were executing. Otherwise it comes from the operating system's own vendor-neutral counters (Windows GPU Engine, Linux gpu_busy_percent), so AMD and Intel adapters and any adapter under a Vulkan or Metal backend report too. Returns -1 on a multi-GPU host, where a reading cannot be attributed to one device.

Share