labeler

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndPrintLabels

func CreateAndPrintLabels(sysfsDRMDir string)

func GetNumaNode added in v0.29.0

func GetNumaNode(sysfsDrmDir, gpuName string) int

GetNumaNode reads the cards numa node.

func GetTileCount added in v0.29.0

func GetTileCount(cardPath string) (numTiles uint64)

GetTileCount reads the tile count.

func Run

func Run(sysfsDrmDir, nfdFeatureFile string, updateInterval time.Duration, scanResources chan bool, levelzero levelzeroservice.LevelzeroService, exitFunc func())

Gathers node's GPU labels on channel trigger or timeout, and write them to a file. The created label file is deleted on exit (process dying).

Types

This section is empty.

Jump to

Keyboard shortcuts

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