Struct amdgpu_sysfs::hw_mon::HwMon[][src]

pub struct HwMon { /* fields omitted */ }
Expand description

Rerepesents a hardware monitor. Hardware monitors are used to report real-time information about the device, such as temperatures and power usage.

Implementations

Most of the time you may want to access HwMons through the GpuController they’re bound to.

Returns a HashMap of temperatures(in degress celsius), indexed by the labels (example: “edge”).

Gets the current GFX/compute clockspeed in MHz.

Gets the current memory clockspeed in MHz.

Gets the average power (currently) used by the GPU in watts.

Gets the current power cap of the GPU in watts.

Gets the maximum possible power cap for the GPU in watts. If overclocking is disabled, this is probably the same as the default cap.

Gets the minimum possible power cap for the GPU in watts.

Trait Implementations

Formats the value using the given formatter. Read more

Reads the content of a file in the SysFS.

Write to a file in the SysFS.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.