iPad Runs Unmodified Linux amdgpu Driver for On-Device LLM Inference via LemonSeed Studio

Original title: Running the unmodified Linux amdgpu driver on an iPad
68AI Score

LemonSeed Studio embeds the unmodified upstream Linux amdgpu and amdkfd drivers into an iPad app via a PCIDriverKit extension to control external AMD GPUs. This enables on-device LLM inference using the HSA runtime and HRX/Loom engine, bypassing Apple's native GPU support limitations.

Full Report

Contents2 sections

LemonSeed Studio

An editor and IDE for iPad with on-device LLM inference on an AMD GPU.

LemonSeed Studio is a single iPad app. It bundles:

Layout

Text
third_party/mac_linuxgpu   GPU driver (submodule)
third_party/LSE            inference engine (submodule)
third_party/amdgpu_mtopg   GPU monitor (submodule)

Getting the source

BASH
git clone --recurse-submodules <repository>

Or, in an existing clone:

BASH
git submodule update --init

mac_linuxgpu fetches its own pinned Linux sources sparsely on first build, so its nested kernel submodule does not need to be cloned recursively.