Skip to content

v0.9.23 — ARM64 NEON, WebGPU Subgroups, Opaque Backend

Choose a tag to compare

@kolkov kolkov released this 04 Aug 14:02
· 6 commits to main since this release
a4a216a

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 via FeatureSubgroupOperations, 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:build tags. GPU data managed through opaque backendData any with Materialize, BackendReleaser, and Materializer interfaces. 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=32 guard 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