go-rocm/rocm_stub.go
Snider 4669cc503d
Some checks failed
Security Scan / security (push) Successful in 8s
Test / Vet & Build (push) Failing after 23s
refactor: replace fmt.Errorf/errors.New with coreerr.E()
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:08:52 +00:00

14 lines
463 B
Go

//go:build !linux || !amd64
package rocm
import coreerr "forge.lthn.ai/core/go-log"
// 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{}, coreerr.E("rocm.GetVRAMInfo", "VRAM monitoring not available on this platform", nil)
}