metal/

directory
v0.6.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT

Directories

Path Synopsis
Command async-prefetch-ring demonstrates out-of-core SSD-to-GPU transformer layer streaming on Apple Silicon without cgo.
Command async-prefetch-ring demonstrates out-of-core SSD-to-GPU transformer layer streaming on Apple Silicon without cgo.
Command compressed-weight-stream benchmarks Metal compressed weight loading (.mtlio LZ4 and LZFSE via x/metalio.OpenCompressedFile) against uncompressed x/metalio and CPU x/compression.Decode + copy, verifying CRC32 and exact byte-for-byte parity.
Command compressed-weight-stream benchmarks Metal compressed weight loading (.mtlio LZ4 and LZFSE via x/metalio.OpenCompressedFile) against uncompressed x/metalio and CPU x/compression.Decode + copy, verifying CRC32 and exact byte-for-byte parity.
Command dispatch-profiler benchmarks per-dispatch GPU timestamp sampling on a 32-dispatch synthetic transformer micro-layer using github.com/tmc/apple/x/metalcounters.
Command dispatch-profiler benchmarks per-dispatch GPU timestamp sampling on a 32-dispatch synthetic transformer micro-layer using github.com/tmc/apple/x/metalcounters.
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks.
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks.
Command fast-weight-loader benchmarks direct NVMe-to-MTLBuffer weight loading using x/metalio against POSIX os.ReadFile+copy and mmap+copy controls, verifies byte/CRC32 parity, and runs a Metal compute dot-product sanity check over the loaded weights.
Command fast-weight-loader benchmarks direct NVMe-to-MTLBuffer weight loading using x/metalio against POSIX os.ReadFile+copy and mmap+copy controls, verifies byte/CRC32 parity, and runs a Metal compute dot-product sanity check over the loaded weights.
Command flighttrace demonstrates an always-on Go 1.27 runtime/trace FlightRecorder anomaly-triggered post-mortem bundle on Apple Silicon with zero cgo and zero TCC prompts.
Command flighttrace demonstrates an always-on Go 1.27 runtime/trace FlightRecorder anomaly-triggered post-mortem bundle on Apple Silicon with zero cgo and zero TCC prompts.
Command heap-kv-allocator benchmarks paged KV-cache block allocation on a Metal placement heap (x/metalheap) against per-block MTLDevice buffer allocations, and verifies alignment, aliasing, purgeability, and residency set accounting.
Command heap-kv-allocator benchmarks paged KV-cache block allocation on a Metal placement heap (x/metalheap) against per-block MTLDevice buffer allocations, and verifies alignment, aliasing, purgeability, and residency set accounting.
Command icb-decode-graph benchmarks a synthetic N-layer transformer decode graph replayed via github.com/tmc/apple/x/metalicb (MTLIndirectCommandBuffer) against traditional per-dispatch CPU encoding.
Command icb-decode-graph benchmarks a synthetic N-layer transformer decode graph replayed via github.com/tmc/apple/x/metalicb (MTLIndirectCommandBuffer) against traditional per-dispatch CPU encoding.
Command metal-energy-roofline sweeps inline MSL compute kernels from bandwidth-bound AXPY to compute-bound FMA chains on Apple Silicon, measuring GPU throughput (x/metalcounters), live IOReport GPU power (x/powersample), and thermal state (x/thermal).
Command metal-energy-roofline sweeps inline MSL compute kernels from bandwidth-bound AXPY to compute-bound FMA chains on Apple Silicon, measuring GPU throughput (x/metalcounters), live IOReport GPU power (x/powersample), and thermal state (x/thermal).
Command metal4-ml-compute evaluates the Metal 4 compute/ML fast path (via github.com/tmc/apple/x/metal4) side-by-side against a Metal 3 MTLCommandBuffer baseline on a decode-loop RMSNorm + SiLU-gated residual micro-step.
Command metal4-ml-compute evaluates the Metal 4 compute/ML fast path (via github.com/tmc/apple/x/metal4) side-by-side against a Metal 3 MTLCommandBuffer baseline on a decode-loop RMSNorm + SiLU-gated residual micro-step.
Command metal4-ml-network compiles a 2-layer ReLU MLP in pure Go via x/coremlcompiler, converts it to a Metal 4 .mtlpackage, and executes it natively through x/metal4's MTL4MachineLearningCommandEncoder and MTLTensor APIs, verifying numerical parity against CPU and Metal 4 compute references and benchmarking p50/p95/p99 latency.
Command metal4-ml-network compiles a 2-layer ReLU MLP in pure Go via x/coremlcompiler, converts it to a Metal 4 .mtlpackage, and executes it natively through x/metal4's MTL4MachineLearningCommandEncoder and MTLTensor APIs, verifying numerical parity against CPU and Metal 4 compute references and benchmarking p50/p95/p99 latency.
metal4-triangle renders a rotating triangle using the Metal 4 API.
metal4-triangle renders a rotating triangle using the Metal 4 API.
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies.
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL