Seeing Inside the NPU: Open-Source Hardware Counter Profiling for...
summary
Open-source plumbing ties NPU hardware counters into runtime traces so per-operator CPU cycles, cache/bandwidth counters and NPU cycle counts appear in one trace. Prototype wires ARM perf PMU reads into Mesa for an Ethos-U65 device, emits values consumed by NVTop and correlates them with ExecuTorch ETDump / TFLite/ONNX Runtime operator traces. Result: live visualization works on mainline Linux (and on Zephyr simulator), reveals CPU at ~80% vs NPU ~4% due to repeated weight transposes and fixes reduce wasted CPU work.
AI-written summary · about
chapters (8)
- 0:00Introduction and speaker background
- 2:52What is an NPU and its ecosystem
- 14:30NPU software stack fragmentation
- 18:43Profiling NPU jobs with hardware counters
- 23:13Live demo with NVTop visualization
- 27:50Debugging performance issues with combined traces
- 30:21Open source benefits and future work
- 31:02Q&A session
