Repository navigation
v0.9.23 — ARM64 NEON, WebGPU Subgroups, Opaque Backend
What's New
ARM64 NEON SIMD
- GEMM micro-kernel — 4×8 register-blocked MatMul using VFMLA/VLD1/VLD1R/VST1 Plan 9 mnemonics. Runtime dispatch via
HasASIMD. Packed A/B panels mirroring the AVX2 6×16 kernel - Element-wise ops — Add/Sub/Mul/Div float32 via WORD-encoded FADD/FSUB/FMUL/FDIV (.4S vectors)
WebGPU Subgroup Shaders
- MatMul + BatchMatMul — cooperative K-reduction using
subgroupAdd. Runtime feature gate viaFeatureSubgroupOperations, scalar fallback on unsupported hardware - Softmax — three-phase cooperative:
subgroupMax→subgroupAdd→ per-lane normalize
Architecture
- ADR-019: Opaque backend data — core tensor package (
internal/tensor/) now has zero GPU knowledge, zero//go:buildtags. GPU data managed through opaquebackendData anywithMaterialize,BackendReleaser, andMaterializerinterfaces. WASM builds without stubs.
Performance
- CPU hot paths — per-element index math eliminated in reduce, scatter-add, and batched broadcast matmul. ScatterAdd allocs O(N) → O(1)
- SIMD threshold —
simdMinLen=32guard on all 47 dispatch sites
Issues closed
- #126 — ADR-019: Opaque backend data
- #106 — ARM64 NEON SIMD kernels
- #141 — WebGPU subgroup shaders
- #81 — CPU hot paths
- #90 — SIMD minimum slice threshold
Full Changelog: v0.9.22...v0.9.23
Sponsor Born: https://opencollective.com/born-ml