util

package
v0.5.43 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAvailableGPUMemoryHints = pkgerrors.New("no available gpu memory hints")

Functions

func GetGPUCount

func GetGPUCount(req *pluginapi.ResourceRequest, deviceNames []string) (float64, sets.String, error)

GetGPUCount extracts GPU count from resource request

func GetNUMANodesCountToFitGPUReq

func GetNUMANodesCountToFitGPUReq(
	gpuReq float64, cpuTopology *machine.CPUTopology, gpuTopology *machine.DeviceTopology,
) (int, int, error)

func IsNUMAAffinityDevice

func IsNUMAAffinityDevice(
	device string, deviceTopology *machine.DeviceTopology, hintNodes machine.CPUSet,
) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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