class

Sysinfo::Zes

Inherits Reference < Object

Intel GPUs through Level Zero Sysman, loaded at runtime like NVML: the loader library ships with the driver (Windows) or the intel-level-zero-gpu package (Linux) and is never a link-time dependency. Engine activity and energy counters are monotonic, so the previous snapshot is kept per handle and utilization / power are the deltas since the previous read_all.

Constants

ZES_LIBRARIES = ["libze_loader.so.1", "libze_loader.so"] of String

Constructors

Class methods

delta_percent(prev_active : UInt64, prev_stamp : UInt64, cur_active : UInt64, cur_stamp : UInt64) : Int32 | Nil

Utilization between two engine-activity snapshots, each an (activeTime, timestamp) pair of nanosecond counters; nil when the timestamps are too close to divide.

Source

Instance methods

read_all
Source