labeler

package
v0.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndPrintLabels

func CreateAndPrintLabels(sysfsDRMDir string)

func GetMemoryAmount added in v0.29.0

func GetMemoryAmount(sysfsDrmDir, gpuName string, numTiles uint64) uint64

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)

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
JackTT - Gopher 🇻🇳