whatisgithub

What is xdna-top?

boxwrench/xdna-top — explained in plain English

Analysis updated 2026-05-18

21PythonAudience · ops devopsComplexity · 3/5Setup · moderate

In one sentence

A terminal dashboard for Linux that shows live GPU and NPU utilization on AMD Ryzen AI Strix Halo processors, filling a gap left by existing tools.

Mindmap

mindmap
  root((xdna-top))
    What it does
      Live GPU pane
      Live NPU pane
      Records telemetry
    Tech stack
      Python
      amdxdna driver
      xrt-smi
    Use cases
      Watch NPU activity
      Prove workload used NPU
      Debug local AI runs
    Audience
      Developers
      Ops/DevOps

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch real-time GPU and NPU busy percentage while running a local AI model on Strix Halo hardware.

USE CASE 2

Export a single telemetry reading as JSON for use in scripts or reports.

USE CASE 3

Record a timed session and run assertions in CI to prove a workload actually used the NPU.

What is it built with?

Pythonamdxdnaxrt-smi

How does it compare?

boxwrench/xdna-top0whitedev/detranspiler2951461586/mulerun-pool
Stars212121
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity3/54/53/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Python 3.11+, the amdxdna driver, and xrt-smi on the system path for full NPU pane support.

No license information is given in the explanation.

So what is it?

xdna-top is a terminal-based monitoring tool for Linux machines running AMD Ryzen AI processors, specifically the Strix Halo family. It shows, side by side, how busy the integrated GPU and the NPU (Neural Processing Unit, the dedicated AI chip on these processors) are at any given moment. It was built because existing tools like amd-smi could not surface this information on Strix Halo hardware, leaving anyone running local AI models with no way to tell whether the NPU was actually doing work. The tool runs in your terminal at a 5 Hz refresh rate and displays two panes. The integrated GPU pane shows a live busy percentage and power draw, pulled directly from Linux kernel counters. The NPU pane lists active hardware contexts by process ID, along with submission and completion counters that let you see whether work is queued or in flight. The tool derives an activity state from counter changes rather than guessing at a utilization percentage, because the underlying driver does not yet expose one directly. Beyond the live dashboard, xdna-top includes several command-line modes for scripting and evidence collection. You can export a single telemetry reading as JSON, record a stream of readings over a timed window, annotate the recording with named markers, and then run assertions against it to confirm the NPU was active within a specific window. This makes it possible to use the tool in automated tests or CI pipelines to prove that a workload actually used the NPU. Installation requires Python 3.11 or newer, the amdxdna driver loaded on Linux, and xrt-smi on the system path for the NPU pane. The integrated GPU pane works without xrt-smi. If either dependency is missing, the relevant pane flags itself as degraded rather than crashing the whole tool.

Copy-paste prompts

Prompt 1
Help me install xdna-top and check that amdxdna and xrt-smi are set up correctly.
Prompt 2
Show me how to record an NPU activity window and assert it was active during that time.
Prompt 3
Explain the difference between the GPU pane and the NPU pane in xdna-top.
Prompt 4
Walk me through exporting a single telemetry reading as JSON with xdna-top.

Frequently asked questions

What is xdna-top?

A terminal dashboard for Linux that shows live GPU and NPU utilization on AMD Ryzen AI Strix Halo processors, filling a gap left by existing tools.

What language is xdna-top written in?

Mainly Python. The stack also includes Python, amdxdna, xrt-smi.

What license does xdna-top use?

No license information is given in the explanation.

How hard is xdna-top to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is xdna-top for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.