go-mlx/mlx_stub.go
Snider cae7ef05e8 feat: extract go-mlx from go-ai as standalone Metal inference package
Split mlx/ directory from forge.lthn.ai/core/go-ai into its own module.
Rewrites import paths, adds CLAUDE.md/TODO.md/FINDINGS.md for dedicated
Claude sessions. Zero external Go deps — pure CGO + mlx-c v0.4.1.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-19 17:57:37 +00:00

10 lines
418 B
Go

//go:build !(darwin && arm64)
// Package mlx provides Go bindings for Apple's MLX framework via mlx-c.
// This stub file is used on non-darwin/non-arm64 platforms or when the
// mlx build tag is not set. All operations report MLX as unavailable.
package mlx
// MetalAvailable reports whether Metal GPU is available.
// Always returns false on non-Apple Silicon platforms.
func MetalAvailable() bool { return false }