cd /news/ai-chips/exploring-the-scalable-matrix-extens… · home topics ai-chips article
[ARTICLE · art-135678] src=github.com ↗ pub= topic=ai-chips verified=true sentiment=· neutral

Exploring the scalable matrix extension of the Apple M4 processor

Apple's M4 chip, first shipped in the 2024 iPad Pro, is the first publicly available device to support ARM's scalable matrix extension (SME), replacing the proprietary AMX instruction set Apple has used in its devices since 2019. An independent developer investigation is microbenchmarking the M4 SME hardware to measure peak compute throughput for common matrix and vector operations and memory transfer rates, while a team at the University of Jena is building a high-performance GEMM implementation on the same extension. The project currently runs only on an external M4 iPad Pro paired with a Mac, with the author noting that M4 Macs are expected soon and inviting pull requests.

read2 min views1 publishedSep 21, 2026
Exploring the scalable matrix extension of the Apple M4 processor
Image: Michielbdejong (auto-discovered)

The 2024 iPad Pro, featuring the Apple M4 chip, is the first device available to the public that supports ARM's scalable matrix extension (SME). Although Apple has included a matrix accelerator in its devices since 2019, it used a proprietary instruction set called AMX<sup>1</sup>. The developers had to use Apple-provided numerical frameworks to take advantage of the hardware. The M4 chip with SME changes this by allowing programmers to write low-level code that directly targets the matrix hardware, bringing potential performance improvements to scientific and machine learning algorithms.

My investigation aims to explore the M4 SME hardware and study the SME instruction set. I am particularly interested in how these features can be used to accelerate vector operations. The initial experiments study the peak compute throughput for common matrix and vector operations and the memory transfer rates using various methods. My methodology relies on generating multiple variants of microbenchmark code over a wide range of parameters and studying the results (see the Python code in tools/ for how the benchmarks are generated). I expect to extend this project as new aspects of the hardware are tested. Pull requests and commentary are welcome!

Another in-depth investigation of M4 SME is provided by a team at the University of Jena, who are building a high-performance GEMM implementation <sup>2</sup>. It is an excellent read if you are interested in the topic.

  • An M4 iPad Pro with Developer Mode activated and paired with your Mac
  • Apple Xcode with installed Command Line Tools
  • XcodeGen (brew install xcodegen )
  • Python3 with PyYAML package to generate the tests
  • Quarto +R/tidyverse to render the reports

Note: this project currently only runs on an external M4 iPad Pro. As M4 Macs are expected to be available soon, it would be desirable to run these tests locally. Pull requests are welcome!

After down or cloning the project, perform the following steps

./setup
make build
make run
make copy_results

After the testing is done, the generated JSON reports are copied from the iPad and placed in the results/ folder. If you have R and Quarto installed, you can also build the R-Markdown reports using make reports.

By default, both single-core and multi-core tests are executed. This can take a long time. If you are only interested in peak single-core rates, you can change the second line in src/tests.swift from let multiCoreTests = true to false and rebuild.

Footnotes #

https://github.com/corsix/amx - description of Apple proprietary AMX extensions 2. https://scalable.uni-jena.de/opt/sme/

── more in #ai-chips 4 stories · sorted by recency
── more on @apple 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/exploring-the-scalab…] indexed:0 read:2min 2026-09-21 ·