Table of Contents

Property CurrentProcessGpuUtilizationPercent

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

CurrentProcessGpuUtilizationPercent

GPU compute (SM) utilization attributable to the current OS process on this device. 0-100 percentage averaged over the most recent NVML sampling window (~1-5 seconds depending on driver). Returns -1 when the value can't be obtained: non-CUDA backend, NVML unavailable, WSL2 / GRID where nvmlDeviceGetProcessUtilization is unsupported, insufficient permissions, or this process has had no GPU activity in the recent window. This is the per-process counterpart of GpuUtilizationPercent (which is device-wide).

public int CurrentProcessGpuUtilizationPercent { get; }

Property Value

int
Share