Blog

23 November 2026

Howto: Bringing up LLaMA.cpp on a New Architecture (Full Series)

Large Language Models (LLMs) are typically associated with vast racks of GPUs, but running them does not have to be. Once a model has been trained, inference can run on ordinary CPUs, from laptops to many-core servers. As new architectures (such as RISC-V) reach the server space, making tools like LLaMA.cpp run well on them is increasingly important.

This series, published since November 2026, follows the process of bringing up LLaMA.cpp on a 64-core RISC-V machine, from the first build attempts through to an understanding of its performance and limitations. This is a master post, bringing together all of the individual posts in the series.

Read more
22 September 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Full Series)

A common perception is that all AI needs a great deal of compute power. Yet many AI inference models run successfully on the very smallest of processors.

Since September 2026, we have been publishing a series of posts, showing how the IREE MLIR tool flow can be used to bring up AI models on small bare metal microcontrollers. This post conveniently brings together all those posts.

Read more
23 November 2026

Howto: Bringing up LLaMA.cpp on a New Architecture (Part 1)

Large language models (LLMs) are typically associated with vast racks of GPUs. However, increasingly, engineers are running AI inference on ordinary CPUs: laptops, servers without accelerators, and especially edge devices. One of the most widely used tools for this is LLaMA.cpp, an open source engine that runs LLMs on (almost) any hardware with a C compiler.

Read more
18 November 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Part 5)

In Part 4 we got all four cores working together. In this post we write the baseline IREE has to beat: a hand-written matrix multiplication with its data in shared memory, copied into the scratchpads by the cores or by the DMA engine, and double buffered. Moving the data makes it more than four times faster; adding cores barely helps, and we find out why.

Read more
4 November 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Part 4)

In Part 3 we ran IREE on one core and parked the other three. In this post we wake them up: we build two ways of sharing work across the cluster’s four cores on its single hardware barrier, measure what a dispatch costs, and find out why four cores are not four times faster.

Read more
20 October 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Part 3)

IREE compiles a model once on your workstation and runs it on bare metal with a small C runtime. In Part 3 we follow a matrix multiplication from MLIR down to RISC-V, run it on one core of a four-core CV32E40Pv2 cluster, and measure what it costs against the same calculation written by hand in C.

Read more
7 October 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Part 2)

In Part 2 we build a cycle-accurate Verilator model of a four-core CV32E40Pv2 cluster, run our first programs on it, and measure what memory costs: twenty cycles for a core to reach off-core memory, and when it pays to copy data into the fast local scratchpad first.

Read more
29 September 2026

Adding CORE-V SIMD Code Generation to GCC

This summer I have been working on adding auto-vectorization for CORE-V’s SIMD (Single Instruction, Multiple Data) extension in GCC. CORE-V SIMD was developed by the PULP project at ETH Zürich and the University of Bologna. It is similar to, but predates, the proposed RISC-V P extension. The work here is based on the OpenHW Foundation’s […]

Read more
Block diagram of the emmtrix processor cluster. A barrier peripheral sits above four CPU cores, each labelled cv32E40Pv2, each paired with its own 256 KiB scratchpad SRAM and DMA engine. All four cores connect through an instruction arbiter and a data arbiter (both round robin) down to a single 64 MiB main memory block with two independent ports.
22 September 2026

Howto: Bringing up IREE on a Bare Metal Microcontroller (Part 1)

IREE compiles a machine learning model into native code for your target, instead of interpreting it through a fixed library of kernels. In Part 1 we explain why that suits a small bare metal microcontroller, compare it with ExecuTorch, and introduce the four-core CV32E40Pv2 cluster this series runs on.

Read more