hardware

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class int
const (
	ClassCPU Class = iota
	ClassAppleSilicon
	ClassNVIDIA
	ClassAMD
	ClassIntelGPU
)

func (Class) String

func (c Class) String() string

type DetectionResult

type DetectionResult struct {
	Class       Class
	GPUName     string
	VRAMBytes   uint64
	RAMBytes    uint64
	CPUCores    int
	IsARM       bool
	CUDAVersion string
	ROCmVersion string
}

func Detect

func Detect() *DetectionResult

Detect probes the current system and returns hardware information.

Jump to

Keyboard shortcuts

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