Book contents +

XVI · Apple MLX acceleration (welvet.mlx) / CHAPTER 25

Apple MLX: go_v_mlx results pointers

Samuel Watson · Welvet feature bookOriginal source ↗

github.com/openfluke/w2a/suites/go_v_mlxhost-only pointers


Why it exists

Find the sibling harness and live MLX parity matrices after the small usage chapters.

What it is

Print Go v1.7.0 / welvet.mlx 1.0.0 pins and commands for w2a go_v_mlx. No GPU required.

Where live results live

This chapter is host-only. It does not claim timings from loading the page. Sibling MLX engine: github.com/openfluke/welvet.mlx. Suite README: w2a/suites/go_v_mlx.

cd ../../w2a && go test ./tests/go_v_mlx -count=1 -timeout 60m
cd ../../welvet.mlx && ./scripts/macos_install_go.sh
cd welvet/examples && ./run_mlx.sh

Engine pin: welvet.mlx 1.0.0, Go binding nativemlx (Welvet v1.7.0). Platform: Apple silicon macOS for SyncToMLX / BackendMLX. Pure-MLX contract: no silent CPU path labeled MLX; no TrainMSE on MLX.

Requirements overview: chapter 110.

Go example

examples/113-apple-mlx-results/main.go

Run:cd welvet/examples/113-apple-mlx-results && source ../env.sh && go run .
// Pointers to MLX validation matrices; no GPU run is implied.
package main

import "fmt"

func main() {
	fmt.Println("Apple MLX results pointers (not a live benchmark)")
	fmt.Println()
	fmt.Println("Engine pin: welvet.mlx 1.0.0 · Go binding: nativemlx (Welvet v1.7.0)")
	fmt.Println("Usage tour: 110 SyncToMLX · 111 caps · 112 Dense/Sequential · 113 pointers")
	fmt.Println()
	fmt.Println("Live matrices (sibling checkouts):")
	fmt.Println("  cd ../../w2a && go test ./tests/go_v_mlx -count=1 -timeout 60m")
	fmt.Println("  cd ../../welvet.mlx && ./scripts/macos_build_w2a.sh")
	fmt.Println()
	fmt.Println("Install shared library into Go:")
	fmt.Println("  cd ../../welvet.mlx && ./scripts/macos_install_go.sh")
	fmt.Println()
	fmt.Println("Small usage tour without the large matrix:")
	fmt.Println("  ../run_mlx.sh")
}

Output

exit 0 · last run via go run .

Apple MLX results pointers (not a live benchmark)

Engine pin: welvet.mlx 1.0.0 · Go binding: nativemlx (Welvet v1.7.0)
Usage tour: 110 SyncToMLX · 111 caps · 112 Dense/Sequential · 113 pointers

Live matrices (sibling checkouts):
  cd ../../w2a && go test ./tests/go_v_mlx -count=1 -timeout 60m
  cd ../../welvet.mlx && ./scripts/macos_build_w2a.sh

Install shared library into Go:
  cd ../../welvet.mlx && ./scripts/macos_install_go.sh

Small usage tour without the large matrix:
  ../run_mlx.sh

Validate (harness)

cd welvet/examples/113-apple-mlx-results && source ../env.sh && go run .