Projects

IREE-rocket

Open-source machine learning compilation and execution for Rockchip NPUs.

Active development
Source
github.com/boydjohnson/iree-rocket
Stack
Rust · IREE · Linux
Targets
RK3588 NPU · CPU (LLVM fallback) · GPU via Vulkan (theoretical)
IREE-rocket compilation and execution paths An ONNX model is compiled by rocket-compiler, which, like the iree-rocket HAL driver, comes from the iree-rocket repository. rocket-compiler calls a custom libIREECompiler.so. The IREE runtime then dispatches to three paths: iree-rocket through the accel/rocket kernel driver to the RK3588 NPU, which works; LLVM CPU to the CPU, which works as a fallback; and Vulkan through PanVK to the GPU, which is theoretical. Compile Runtime HAL driver Driver Hardware Model ONNX rocket-compiler libIREECompiler.so iree-runtime iree-rocket accel/rocket Linux kernel NPU RK3588 Vulkan PanVK Mesa GPU Mali-G610 LLVM CPU fallback CPU Cortex-A76 / A55 works today theoretical from the iree-rocket repository
Fig. 1 — Compilation and execution paths. rocket-compiler calls a custom libIREECompiler.so. Solid paths work today, including the CPU fallback; the dashed Vulkan path to the GPU is theoretical.

IREE-rocket is a userspace driver for the Linux Rocket kernel driver, which exposes the neural processing unit on Rockchip RK3588 SoCs. It lets models compiled with IREE execute on the NPU through the mainline kernel interface.