Documentation
¶
Overview ¶
Package hardware detects the node's compute capability and produces the typesv1.CapabilityProfile sent at enrollment and in heartbeats.
Platform-specific probes live in build-tagged files (hw_darwin.go, hw_linux.go, hw_windows.go); this file holds the shared assembly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "dev"
Version is stamped by the linker (goreleaser) and reported in the profile.
Functions ¶
func BestAccel ¶
func BestAccel(p *typesv1.CapabilityProfile) string
BestAccel returns the accelerator backend the runtime artifact fetcher should prefer for this profile.
func BestVRAMMB ¶
func BestVRAMMB(p *typesv1.CapabilityProfile) uint64
BestVRAMMB returns the largest detected GPU memory (system RAM on Apple Silicon's unified memory); 0 when no usable GPU was found.
Types ¶
This section is empty.