levelzeroservice

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceHealth

type DeviceHealth struct {
	Memory            bool
	Bus               bool
	SoC               bool
	GlobalTemperature float64
	GPUTemperature    float64
	MemoryTemperature float64
}

type DeviceTemperature

type DeviceTemperature struct {
	Global float64
	GPU    float64
	Memory float64
}

type LevelzeroService

type LevelzeroService interface {
	Run(bool)
	GetIntelIndices() ([]uint32, error)
	GetDeviceHealth(bdfAddress string) (DeviceHealth, error)
	GetDeviceTemperature(bdfAddress string) (DeviceTemperature, error)
	GetDeviceMemoryAmount(bdfAddress string) (uint64, error)
}

func NewLevelzero

func NewLevelzero(socket string) LevelzeroService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL