Independent software engineering

Boyd Johnson

Systems software, machine learning compilers, and heterogeneous computing.

Exploring how software can make better use of the hardware underneath it.

01 / Featured project

Active development

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

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.

02 / Recent writing

  1. 11

    Exploring Machine Learning with a toy American football dataset

    Notes on generating a machine learning, visual reasoning dataset and training models for it.

    machine learning

  2. 10

    Using Hurl instead of Postman for information sharing within teams

    A guide to some of the software development tasks I've seen Postman used for, and how to use Hurl instead.

    cli toolshurlHTTP requests

  3. 09

    Assert on local instance of a mocked class - Python

    Clearing up a common misperception about the use of MagicMock in Python -- local instance variables of a mocked class

    pythonmocktesting

  4. 08

    Pandas GroupBy and Top by Group

    A discussion of different ways to identify the top items by value in a group using pandas. Pandas tips and tricks.

    pandasdata