2026-02-19 19:39:40 +00:00
|
|
|
//go:build !linux || !amd64
|
|
|
|
|
|
|
|
|
|
package rocm
|
|
|
|
|
|
2026-03-16 21:08:52 +00:00
|
|
|
import coreerr "forge.lthn.ai/core/go-log"
|
2026-02-19 21:45:02 +00:00
|
|
|
|
2026-02-19 19:39:40 +00:00
|
|
|
// ROCmAvailable reports whether ROCm GPU inference is available.
|
|
|
|
|
// Returns false on non-Linux or non-amd64 platforms.
|
|
|
|
|
func ROCmAvailable() bool { return false }
|
2026-02-19 21:45:02 +00:00
|
|
|
|
|
|
|
|
// GetVRAMInfo is not available on non-Linux/non-amd64 platforms.
|
|
|
|
|
func GetVRAMInfo() (VRAMInfo, error) {
|
2026-03-16 21:08:52 +00:00
|
|
|
return VRAMInfo{}, coreerr.E("rocm.GetVRAMInfo", "VRAM monitoring not available on this platform", nil)
|
2026-02-19 21:45:02 +00:00
|
|
|
}
|