struct

Sysinfo::Gpu

Inherits Struct < Value < Object

One GPU's readings; anything that cannot be read is nil, and no read here can raise into the caller.

Constructors

new(vendor : Symbol, name : String | Nil = nil, util_percent : Int32 | Nil = nil, mem_used_kb : Int64 | Nil = nil, mem_total_kb : Int64 | Nil = nil, temp_c : Int32 | Nil = nil, power_w : Float64 | Nil = nil, power_limit_w : Float64 | Nil = nil, pcie_gen : Int32 | Nil = nil, pcie_width : Int32 | Nil = nil)
Source

Instance methods

mem_percent

VRAM used percent, nil when used or total is unknown.

Source
mem_total_kb
Source
mem_used_kb
Source
name
Source
pcie_gen
Source
pcie_width
Source
power_limit_w
Source
power_w
Source
temp_c
Source
util_percent
Source
vendor
Source