discover

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 25 Imported by: 5

Documentation

Overview

AMD discovery needs a small amount of backend-specific handling beyond the generic llama-server device list. ROCm devices expose their real capability as gfx targets, and the shipped rocBLAS kernels define which of those targets are actually usable. On Linux, KFD topology and DRM sysfs attributes provide the integrated-vs-discrete signal needed for scheduler decisions. On Windows, older HIP driver installs can also leave ROCm libraries present but too old to support GPU inference. These helpers keep that extra validation and warning logic in one place.

Vulkan discovery needs a small amount of normalization around device type. llama-server discovery output does not currently expose a stable structured backend type field, so we use explicit Vulkan UMA metadata when it is present and, on Windows, refine the result with a direct Vulkan API query. The goal is to preserve correct integrated-vs-discrete scheduling decisions without relying on device-name heuristics.

Index

Constants

This section is empty.

Variables

View Source
var CudaTegra string = os.Getenv("JETSON_JETPACK")

Jetson devices have JETSON_JETPACK="x.y.z" factory set to the Jetpack version installed. Included to drive logic for reducing Ollama-allocated overhead on L4T/Jetson devices.

Functions

func GPUDevices added in v0.12.4

func GPUDevices(ctx context.Context, runners []ml.FilteredRunnerDiscovery) []ml.DeviceInfo

func GetCPUMem

func GetCPUMem() (memInfo, error)

func GetSystemInfo

func GetSystemInfo() ml.SystemInfo

GetSystemInfo returns host memory information used by scheduling.

func IsNUMA

func IsNUMA() bool

func LogDetails added in v0.12.4

func LogDetails(devices []ml.DeviceInfo)

func RunNativeProbeCommand added in v0.30.0

func RunNativeProbeCommand(ctx context.Context, libDirs []string, out io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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