Retrospectively Reverse-Engineering Apple's Neural Engine
Trending on Hacker News: Retrospectively Reverse-Engineering Apple's Neural Engine (207 points / 29 comments, via eiln.github.io)
Opening excerpt
I stopped working on the reverse-engineered Apple Neural Engine (ANE) driver three years ago, upon a sad mini realization that the ANE block is just not that useful, and I could be doing more useful things, and moved onto upstreaming other, more useful, blocks. The ANE’s architecture was too opinionated to build a general-purpose accelerator platform around it, and a linux driver effectively opening ANE hardware API access could not broaden the class of workloads it could do. Even macOS only regularly uses their own ANE to generate upsampled preview images in Finder.
The M5 (2025)‘s headline feature was “LLM performance”, and they also conveniently folded the ANE cores inside the GPU cores — I knew it was coming, but it officially feels like the beginning of the end for the standalone NPU. So, in honor of the ANE’s apparent demise, we will do something even more useless: go back and reverse-engineer the ANE on the M1, finish what we started. It’s been three years (fuck), and I should know more than I did when I first worked on this.
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (207 points / 29 comments, via eiln.github.io). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News