Freeing the Allwinner A733 3.0 Tops NPU Mainline Linux (Etnaviv and Mesa Teflon) Developer Tim Michals documented bringing up the 3.0 TOPS Vivante VIP9000 NPU on Allwinner's A733 SoC under mainline Linux using the open-source etnaviv driver and Mesa Teflon, targeting the Radxa Cubie A7A (A733) and Cubie A5E (T527) boards. The write-up explains how the NPU splits work between fixed-function 8-bit NN cores and a programmable PPU/shader core, and how Linux dma-buf lets the camera, video encoder and NPU share one physical buffer for zero-copy frame processing. The effort matters because most SBCs keep this NPU locked behind a vendor 5.15 kernel, closed-source libVIPlite.so libraries and proprietary .nb model compilers. Freeing the 3.0 TOPS NPU on the Allwinner A733: How an On-Die Neural Accelerator Works, Mainline Linux etnaviv + Mesa Teflon Bring-Up, and Zero-Copy Video Processing By Tim Michals Featured for Hackster.io — Open-Source Edge AI, Mainline Linux & Embedded Vision Pick up almost any modern single-board computer and the headline spec jumps right off the box: "Octa-Core CPU + 3.0 TOPS AI NPU " For robotics, smart cameras, and edge-vision projects, that promise sounds simple—plug in a camera, run a neural network, and detect objects in real time without needing a desktop GPU or sending video to the cloud. Before diving into Linux drivers or silicon registers, it helps to step back and ask a simpler question: what is an AI accelerator actually doing, and why does a normal CPU struggle with it? When a computer vision model looks at a camera frame—say, a 1920×1080 image—it doesn't "see" a person or a stop sign all at once. Instead, it passes the image through dozens of layers of convolution CONV 2D . A convolution is surprisingly simple: imagine taking a tiny 3×3 magnifying glass called a kernel or filter and sliding it across every single pixel of the image. At each stop, the computer multiplies those 9 pixel values by 9 learned weights and adds them up into one output number. Early layers look for simple things like vertical edges or bright spots; deeper layers combine those patterns into wheels, faces, or text. A single modern vision model might perform billions of these tiny multiply-and-add steps on every single frame—30 times a second. A general-purpose CPU is built for complex logic and branching, not doing billions of repetitive multiplies per second, so it quickly gets hot, burns power, and drops frames. Models are usually trained on big server GPUs using 32-bit floating-point numbers FP32 —high-precision decimals . On a tiny embedded board, you don't need 32 bits of decimal precision just to tell a cat from a coffee mug. Quantization converts those FP32 weights and pixel values into compact 8-bit whole numbers INT8 or UINT8 , from -128..127 or 0..255 . Shrinking from 32-bit decimals to 8-bit integers makes each multiply-add circuit roughly 15–20× smaller and more power-efficient , and cuts memory traffic by 4× . When a chip advertises "3.0 TOPS" Tera Operations Per Second , it means 3 trillion 8-bit integer operations per second—not 32-bit desktop floating point. An NPU Neural Processing Unit isn't just one giant calculator. Real AI pipelines do more than convolutions: you also have to resize/normalize camera pixels before inference, or run custom math, activations, and image filters afterward. Inside modern NPUs like the Vivante VIP9000 on Allwinner's A733, the silicon is split into two complementary helpers: - NN Neural Network Cores : Fixed-function hardware arrays packed with hundreds of 8-bit multipliers. They are unbeatable at convolutions, but they cannot run arbitrary if/else code or general math. - PPU / Shader Core : A small programmable parallel processor like a mini compute GPU that runs short parallel programs shaders across hundreds of pixels or tensor elements at once—handling custom math, image pre/post-processing, and ops the fixed-function NN cores don't support. Even with a fast NPU, copying a 1080p camera frame from the camera driver into CPU memory, converting it, and copying it back to the NPU wastes huge amounts of memory bandwidth. On Linux, dma-buf lets the camera hardware, video encoder, and NPU share the exact same physical memory buffer —so frames move from camera to NPU with zero CPU copies . Most SBCs lock this NPU hardware inside an old vendor kernel 5.15 , closed-source userspace libraries libVIPlite.so , and proprietary offline .nb model compilers. On the Radxa Cubie A7A Allwinner A733 and Cubie A5E Allwinner T527 , we set out to unlock this stack on 100% open-source mainline Linux 7.1 using the upstream etnaviv DRM driver /dev/dri/renderD128 , Mesa 26.1.8 Teflon libteflon.so , which runs standard .tflite models directly , and V4L2 dma-buf zero-copy camera pipelines. Real silicon bring-up is messy, and this article shares the whole journey—what already works on live Cubie A7A hardware PPU shader compute at 0.059–0.396 ms , zero-copy V4L2 /dev/video0 and CMA dma-buf - NPU PRIME at 0.401–0.487 ms , and ov5647 CSI + Cedrus H.265 video , as well as the open HW V83 NN conv2d DRAM-read investigation still underway. Running AI locally on the board "at the edge" instead of in the cloud delivers sub-millisecond latency critical for robotics and drones , privacy camera feeds never leave the device , offline reliability , and high performance per watt : - CPU : Great for operating systems, networking, and branching logic if/else ; poor at billions of repetitive matrix multiplies. - GPU : Built for 32-bit floating-point graphics and parallel math, but power-hungry and absent or small on many headless embedded SoCs. - NPU : Purpose-built for quantized 8-bit neural network math and on-chip SRAM dataflow at a fraction of the power. If you want to go deeper—or help crack the remaining open HW V83 NN bring-up items—these companion guides cover each layer of the stack: - Use Cases & Workload Mapping : Inside an Edge AI Chip: NN Cores, Shaders, and Why You Need Both https://github.com/tcmichals/cubie-a5e/blob/main/docs/articles/part6 a733 npu nn vs shaders best uses.md — plain-English guide to matching workloads across NPU, PPU shaders, Arm NEON, ISP/VE, and the on-die XuanTie E902 RISC-V core. - Silicon Debugging War Stories : Freeing the Allwinner A733 NPU on Mainline Linux 7.1: The 8 Real-World Problems We Solved https://github.com/tcmichals/cubie-a5e/blob/main/docs/articles/part7 a733 npu silicon debugging problems solved.md — deep dive into 0x9003 vs. 0x9202 , TP ENGINE=0 , MMUv2 PDMODE, and the ongoing HW V83 NN DRAM-read investigation. - Copy-Pasteable Build, C++, PPU & Video Examples : Allwinner T527 & A733 Mainline NPU Guide https://github.com/tcmichals/cubie-a5e/blob/main/docs/common/NPU ACCELERATION GUIDE.md — complete build instructions and verified npu-ppu-test / npu-v4l2-dmabuf-test commands. - Camera & Hardware Video Encoding : Camera / ISP 602 V4L2 Guide https://github.com/tcmichals/cubie-a5e/blob/main/docs/common/CAMERA V4L2 GUIDE.md and A733 Cedrus H.264/H.265 Encoder Guide https://github.com/tcmichals/cubie-a5e/blob/main/docs/common/A733 VE ENCODER GUIDE.md . - Upstream References : Mesa Teflon Documentation https://docs.mesa3d.org/teflon.html and Linux kernel drivers/gpu/drm/etnaviv/ . - Want to pitch in? Community kernel/Mesa hackers are especially welcome to help test or trace the two remaining open items: the HW V83 0x9202 NN conv2d DRAM-read bug and etnaviv.ko rmmod / insmod PD NPU re-probe GC0 after power-domain cycle . If you have ever deployed a computer vision model like YOLOv8, MobileNetV2, or PoseNet on an embedded Linux single-board computer, you have felt the wall that general-purpose CPU cores hit when processing real-time 1080p video. Even on a modern octa-core processor like the Allwinner A733 2× Arm Cortex-A76 @ 2.0 GHz + 6× Cortex-A55 @ 1.8 GHz, powering the Radxa Cubie A7A or the Allwinner T527 8× Cortex-A55 @ 1.8 GHz, powering the Radxa Cubie A5E , running millions of multiply-accumulate operations per frame on the CPU means: - Burning 3–5 Watts of CPU thermal budget on matrix math instead of application logic. - Saturating the CPU's L1/L2 caches and external DRAM bus by repeatedly fetching weights and writing intermediate feature maps. - Dropping frames whenever the CPU also has to handle camera capture, H.264/H.265 video encoding, or network streaming. To solve this, silicon designers place a dedicated Neural Processing Unit NPU right on the SoC die. On the Allwinner A733 verified on live Radxa Cubie A7A silicon , that NPU is a 3.0 TOPS-class VeriSilicon Vivante VIP9000Nano-DI npu@3600000 , model 0x9000 , rev 0x9202 , HW V83 ; on the Allwinner T527 , it is a 2.0 TOPS VeriSilicon Vivante VIP9000Nano-SI+ npu@7120000 , rev 0x9003 . Unlike a CPU which fetches scalar or small SIMD instructions one by one or a GPU which runs general-purpose 32-bit floating-point shaders , a neural network accelerator is a spatial dataflow engine purpose-built around four hardware principles: 1. 8-Bit Quantized Tensor Math INT8 / UINT8 : Neural networks trained in 32-bit floating point FP32 are quantized to 8-bit integers INT8 or UINT8 using per-tensor or per-channel scale and zero-point parameters. An 8-bit integer multiply-accumulate MAC circuit takes roughly 15–20× less silicon area and switching energy than an FP32 fused multiply-add, allowing the A733 NPU to pack 8 parallel NN cores × 64 MADs/core with ZDP3 spatial reuse, delivering up to 3.0 TOPS marketed peak at high OPP clocks into a compact silicon footprint. 2. Spatial Weight & Activation Broadcast Across 8 NN Cores : In a 2D convolution $3 \times 3$ or$1 \times 1$ , the exact same kernel weights slide across thousands of$ x, y $ pixel locations, while the same input pixel patch is multiplied against dozens of output channels. Instead of reading weights from DRAM over and over, the NPU loads weights and input tiles once into 512 KB of ultra-wide on-chip VIP SRAM 128 bytes / 1024 bits per cycle physical width on the A733 and broadcasts them simultaneously across its 8 Neural Network NN cores . 3. On-the-Fly Hardware Weight Decompression Huffman + ZRL : Neural network weights contain large runs of zeros and clustered small integer values. When a model is loaded, its weights are compressed using Huffman coding and Zero-Run-Length ZRL encoding. Inside the NPU, a dedicated hardware bitstream decoder decompresses weights as DMA streams them from LPDDR5—cutting external memory bandwidth by 2–4× with zero CPU overhead. 4. Fused Hardware Pooling, Activation & Requantization : Before a partial sum ever leaves an NN core, dedicated inline stages apply 32-bit bias addition, non-linear activation ReLU , ReLU6 , Clamp ,$2 \times 2$ max or average pooling, and 8-bit requantization in a single pass. On SoCs with a dedicated Tensor Processor TP such as the T527 , layout transposes and LUT activations run on TP cores; on the A733 0x9202 TP ENGINE = 0 , non-NN ops fall to the companion Programmable Shader / PPU core NumShaderCores = 1 or CPU. A common misconception is that an "NPU" is one single black-box circuit. On the Allwinner A733 VIP9000Nano-DI , rev 0x9202 , the block at 0x03600000 is actually a two-engine heterogeneous compute cluster sharing one Front-End DMA parser and MMUv2: - 8× NN Cores Fixed-Function Convolution Arrays : Ultra-dense INT8 multiply-accumulate hardware 512 MACs/cycle . Blazing fast for CONV 2D , DEPTHWISE CONV 2D , and FULLY CONNECTED 90%+ of a YOLO or MobileNet backbone , but unable to run general-purpose code if/else , float32 math, FFTs, image filters, or bounding-box NMS . - 1× PPU / Shader Core Programmable Processing Unit, 256 Hardware Threads : A shader is simply a small parallel program OpenCL / SIMD vector kernel that executes across hundreds of pixels or tensor elements simultaneously—like a mini compute GPU bolted onto the NPU die. It handles everything fixed-function NN cores cannot: float32/fp16 math, image pre/post-processing, optical flow, custom activations, and tensor layout shuffles. - No Dedicated TP Engine TP ENGINE = 0 : Older Vivante NPUs T527 0x9003 , i.MX8MP 0x8002 included a third dedicated Tensor Processor TP to transpose tensors NHWC ↔ NCHW and run LUT activations. On A733 0x9202 , Vivante removed the TP hardware to save die area—making software support for both the NN engine Path A and PPU/CPU ops Path B essential. Real edge-vision and robotics pipelines are never 100% convolutions. Matching each stage to the right silicon block on the A733 is why this dual-path mainline stack matters: A common pitfall when reading vendor headers is guessing which gc feature database.h row matches an SoC without checking silicon. Before booting the A7A, it was easy to assume the A733 carried Allwinner's 12-core 0x9113 VIP9000UL-DI+ block— live hardware readback on the Radxa Cubie A7A /sys/kernel/debug/dri/0/gpu proved the A733 silicon is actually model 0x9000 , revision 0x9202 product id 0x05090009 , customer id 0x1000003b , eco id 0x08000000 , chip date 2023-05-18 — VeriSilicon VIP9000Nano-DI HW V83 , VIP VERSION 0x398 . Live silicon register readbacks and VeriSilicon's hardware feature database allwinner/gc feature database.h highlight the exact architectural differences between the A733 and T527: Traditionally, using a Vivante VIP9000 NPU on an Allwinner SoC meant accepting a locked-down vendor BSP stack: - Kernel Space : A ~44,000-line out-of-tree kernel module vipcore.ko or galcore.ko exposing /dev/vipcore or /dev/galcore that breaks on every minor Linux kernel upgrade EXTRA CFLAGS removal, in irq deprecation, MAX ORDER rename, platform driver .remove signature changes . - Userspace : Precompiled closed-source shared libraries libVIPlite.so , libVIPuser.so , or TIM-VX tied to a specific glibc/Android ABI. - Offline Model Lock-In : You cannot load a standard .tflite model directly. Instead, you must run a proprietary x86 offline compiler acuity-toolkit / pegasus to convert your model into a locked .nb network binary.nb blob tailored to a single chip revision. To run on mainline Linux 7.1 with zero binary blobs, we replaced the entire vendor stack with upstream open-source components: To be fair to the vendor stack, Allwinner and VeriSilicon's proprietary tools ACUITY + .nb + libVIPlite.so / libNBGlinker.so + Allwinner awnn exist for a reason and do offer real advantages today when running on the vendor 5.15 BSP: - Ahead-of-Time Whole-Graph Optimization .nb : ACUITY compiles ONNX, PyTorch, or TFLite models offline on an x86 PC into a pre-scheduled .nb binary—eliminating runtime graph compilation overhead and fusing Conv + Bias + ReLU + Pool aggressively. - Hardware Weight Compression & VIP SRAM Tiling : ACUITY emits Huffman + Zero-Run-Length ZRL compressed weights 2–4× less LPDDR5 traffic and statically tiles intermediate feature maps inside the 512 KB on-chip VIP SRAM across consecutive layers so tensors stay on-die instead of bouncing through external DRAM. - Broader Operator & Precision Coverage : Supports INT8 , UINT8 , and INT16 , custom OpenVX/PPU kernels, and turnkey Allwinner awnn / vpm run demos YOLOv5 , YOLOv8 , face/pose out of the box. Can we use libVIPlite.so , ACUITY , or awnn inside our open-source mainline stack? No — not directly. libVIPlite.so , libNBGlinker.so , awnn , and the ACUITY compiler are closed-source proprietary binaries tied to the out-of-tree /dev/vipcore ioctl ABI not Linux DRM /dev/dri/renderD128 , and vipcore.ko cannot be upstreamed into mainline Linux. Wait—doesn't ACUITY need an x86 PC? Can open source actually match its speed on the board? VeriSilicon ships ACUITY as an x86-only offline tool largely for convenience and IP protection, not because the Arm SoC can't do the graph compilation. Compressing quantized weights Huffman/ZRL , planning 512 KB VIP SRAM tiles, and building the command stream take a fraction of a second once at model-load time on the A733's Cortex-A76/A55 cores and can be cached to disk so subsequent runs load in milliseconds — no x86 Docker container required . Because all of the underlying capabilities Huffman/ZRL weight compression, VIP SRAM tiling, multi-layer batching, and PPU shaders are hardware features of the VIP9000 die, we are still resolving the HW V83 NN DRAM-read issue first , and our next steps are to bring those exact optimizations clean-room into MIT-licensed Mesa etnaviv / Teflon so the open-source stack can match proprietary .nb performance without binary blobs or kernel lock-in. To understand what happens inside the silicon at 0x03600000 when an AI inference job runs—and why specific clock, reset, and MMUv2 registers had to be unlocked for the Allwinner A733—let's trace the internal hardware blocks from the power rail down to the 8 NN cores. Before a single register at 0x03600000 responds to CPU reads, three hardware prerequisites must be satisfied in strict order: 1. Power Supply & Silicon Island AXP8191 dcdc2 + PCK-600 PD NPU : - The external vdd-gpu-npu power rail is driven by the AXP8191 PMIC dcdc2 buck converter 800 mV at 492–852 MHz boot nominal, scaling up to 960–1080 mV at 1008–1120 MHz OPP bins . - Inside the A733 SoC, the PCK-600 Power Controller 7060000.power-controller controls power isolation for the NPU island via domain PD NPU id 4 , pstate=0x8, on . When etnaviv calls pm runtime resume and get , Linux genpd powers on PD NPU and releases isolation clamps. 2. The external 3. The 4-Clock Tree in Mainline ccu-sun60i-a733.c : - CLK NPU 0x0b00 , "core" : The high-speed compute clock driving the 8 NN cores and 512 KB VIP SRAM 840 MHz default from pll-npu , muxable across pll-npu , pll-periph0-800M/600M/480M , pll-ve0 , pll-ve1 , pll-de-3x with a 5-bit divider M and gate BIT 31 . - CLK AHB NPU 0x05c0 bit 6 CLK BUS NPU 0x0b04 bit 0, "reg" , 200 MHz : On the A733, CPU register reads/writes to$\rightarrow$ 0x03600000 traverse two series AHB clock gates : the top-level NPU AHB master gate 0x05c0 bit 6 and the NPU module bus gate 0x0b04 bit 0 . In drivers/clk/sunxi-ng/ccu-sun60i-a733.c , we parented bus npu clk CLK BUS NPU directly to ahb npu clk CLK AHB NPU . That way, when etnaviv enables its "reg" clock, the Linux Common Clock Framework automatically enables both 0x05c0 6 and 0x0b04 0 . - CLK MBUS NPU 0x05e0 bit 18, "bus" , 600 MHz : Gates the 128-bit AXI/MBUS DMA master port, parented to mbus clk 600 MHz , synced with Junhui Liu's upstream A733 CCU v7 patch series . If CLK MBUS NPU is left gated, MMIO register reads work fine, but the NPU's DMA engine stalls forever the moment it tries to fetch its first command buffer from LPDDR5 4. 5. Triple Reset Lines 0x0b04 bits 16, 17, 18 : - Unlike the T527 which has a single RST BUS NPU bit , A733 register 0x0b04 splits the NPU reset into active-low lines: RST BUS NPU CORE BIT 16 , RST BUS NPU AXI BIT 17 , RST BUS NPU AHB BIT 18 plus RST BUS NPU SRAM at BIT 19 , read back as 0x000F0000 deasserted on silicon . - Mainline etnaviv previously called devm reset control get optional , which only supports a single reset line. By switching etnaviv gpu platform probe to devm reset control array get optional exclusive &pdev- dev and updating vivante,gc.yaml to maxItems: 3 , etnaviv cleanly asserts and deasserts all three reset lines as a unit. 6. Unlike the T527 which has a single How does the NPU execute a multi-layer neural network without CPU intervention between layers? At the front of the NPU sits the Front-End FE Command Parser . It is a dedicated DMA state machine that reads 64-bit instructions LOAD STATE , END , NOP , WAIT , LINK , STALL directly from system memory: - Wait-Link Ring Buffer : The kernel maintains a small circular ring buffer in DMA memory ending in a 16-byte WAIT 200 cycles LINK back to WAIT loop. While the NPU is idle or finishing a job, the FE parser continuously loops between those two instructions.$\rightarrow$ - Dynamic Job Chaining : When userspace submits an inference command stream, the kernel writes a LINK instruction at the end of the user buffer pointing back to the kernel's new WAIT - LINK tail, and then overwrites the previous LINK target in the active ring to jump into the user's command stream. The FE seamlessly follows the new link on its very next cycle without ever stopping. - Why ETNA SEC KERNEL 0x003A4 Is Mandatory : The VIP9000Nano-DI 0x9202 implements Vivante's Security AHB feature MINOR FEATURES7 BIT SECURITY + MINOR FEATURES10 SECURITY AHB . On this hardware, the legacy VIVS FE COMMAND CONTROL 0x00658 kick register is a no-op. By adding the Allwinner 0x9000 NPU entries 0x8303 , 0x9003 , 0x9113 , 0x9202 to the kernel's etnaviv hwdb.c , etnaviv enables gpu- sec mode = ETNA SEC KERNEL : it unlocks non-secure register writes at 0x003A8 , writes the command buffer address to VIVS FE COMMAND ADDR 0x00654 , and starts the FE via VIVS MMUv2 SEC COMMAND CONTROL 0x003A4 . Every memory address inside an NPU job—the command buffer, compressed weights, bias tables, input feature maps, and output tensors—is a 32-bit NPU Virtual Address NPU VA . 1. Two-Level Page Walk PTA MTLB STLB :$\rightarrow$ $\rightarrow$ - The NPU's internal MMUv2 translates every 32-bit NPU VA into a 40-bit LPDDR5 Physical Address PA using a Page Table Array PTA at 0x0038C / 0x00390 , a 1024-entry Master TLB MTLB , bits 31:22 , and 1024-entry Slave TLB page tables STLB , bits 21:12 , 4 KB pages . - Because the MMU translates scatter-gather physical pages into a contiguous virtual range, large neural network weight buffers do not need physically contiguous CMA memory—standard paged Linux GEM buffers work out of the box. 2. The NPU's internal 3. The Revision 0x9202 MMU PAGE DESCRIPTOR PDMODE Architecture 0x003B4 , 0x00388 , 0x00184 : - On older Vivante cores like the T527 0x9003 , etnaviv iommuv2 restore sec initializes MMUv2 via a Page Table Array PTA at 0x0038C / 0x00390 / 0x00394 , runs a physical-mode FE command buffer load state VIVS MMUv2 PTA CONFIG , and writes 0x00388 = 0x01 . - On the A733 0x9202 , VeriSilicon enabled MMU PAGE DESCRIPTOR = 1 mmu pd mode = 1 in Allwinner's vip drv hardware.c . Instead of PTA indirection, the kernel writes the 4 KB Master TLB physical frame directly to 0x003B4 = mtlb dma 12 << 4 | MODE4 K bit 0 = 0 for etnaviv 's 4 KB MTLB / 4 MB per-MTLB layout, vs 1 for 1 KB / 16 MB MODE1 K , skips PTA CONTROL , configures 0x0055C = 0x00FFFFFF MC L2 CACHE CONFIG and 0x00090 |= BIT 6 bypass reorder , and enables PDMODE via 0x00388 = 0x21 BIT 5 | ENABLE . - Subtle TLB Flush Trap in etnaviv buffer.c : Mainline etnaviv flushes the MMUv2 TLB by writing 0x00000018 MODE MASK | FLUSH to VIVS MMUv2 CONFIGURATION 0x00184 —which leaves bit 8 ADDRESS MASK as 0 , zeroing the MTLB base address under PDMODE Matching Allwinner's vip drv mmu.c , PDMODE flushes must write 0xffffff7f ADDRESS MASK = 1 , MODE MASK = 1 , FLUSH MASK = 0 , FLUSH = 1 so dynamic BO mappings flush the TLB without clobbering the page-table base. 4. On older Vivante cores like the T527 Once the FE parses a layer kick VIVS PS NN INST ADDR at 0x010A0 + VIVS PS UNK10A4 at 0x010A4 , the actual tensor math runs across the internal blocks wired to the 512 KB on-chip VIP SRAM : - 8 Parallel NN Cores HW V83 , VIP VERSION = 0x398 : The NN cluster fetches a 128-byte descriptor from VIVS PS NN INST ADDR , streams compressed weights from LPDDR5 into the 512 KB VIP SRAM 128-byte physical width, mapped via VIVS GL OCB REMAP START/END , and executes 64 MADs/core across all 8 NN cores in parallel 32 lanes/output cycle . On 0x9202 , VeriSilicon enabled HW V83 , NN SMALL BATCH PHASE2 = 1 , NN TENSOR ADD FIELD MOVE TO EXT CMD = 1 , and ZRL 8BIT = 0 . - 1 Programmable Shader / PPU Core No Dedicated TP Block : Unlike the T527 2 TP cores , the A733's 0x9202 silicon sets TP ENGINE = 0 and TPEngine CoreCount = 0 . All non-NN tensor manipulation such as NHWC ↔ NCHW layout transpose, padding, or custom elementwise activations must execute on the single USC / PPU Shader core 256 threads , 64 temp regs , 512 instructions or the Arm CPU—a key architectural difference that surfaced immediately during our live Mesa Teflon bring-up below. How does a Python script or C/C++ application loading a standard .tflite file end up driving 8 NN cores through /dev/dri/renderD128 ? The software stack is cleanly split into four layers. Your application uses the standard TensorFlow Lite C API