klyn.system.SystemSnapshot.gpus
property
public readonly property gpus as IList<GpuSnapshot>
Description

Immutable graphics-adapter inventory. AVAILABLE with an empty list means enumeration succeeded and found none; unsupported is a separate status.

Throws
  • MetricUnavailableException when GPUS is unavailable.
Example

if snapshot.status(SystemField.GPUS) == MetricStatus.AVAILABLE: print(snapshot.gpus.size)