go-rocm/rocm_stub.go
Claude 501de83d3b
feat: VRAM monitoring via sysfs with dGPU auto-detection
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-19 21:45:02 +00:00

14 lines
415 B
Go

//go:build !linux || !amd64
package rocm
import "fmt"
// ROCmAvailable reports whether ROCm GPU inference is available.
// Returns false on non-Linux or non-amd64 platforms.
func ROCmAvailable() bool { return false }
// GetVRAMInfo is not available on non-Linux/non-amd64 platforms.
func GetVRAMInfo() (VRAMInfo, error) {
return VRAMInfo{}, fmt.Errorf("rocm: VRAM monitoring not available on this platform")
}