amd/xdna-driver

AMD XDNA Driver (amdxdna.ko) for Linux and XRT SHIM library

What it solves

This project provides the necessary Linux kernel drivers and libraries to enable support for AMD XDNA devices (NPUs) on Linux systems. It allows users to run AI applications by bridging the gap between the hardware and the Xilinx Runtime (XRT).

How it works

The project consists of two primary components: the amdxdna.ko kernel driver (mirrored from the Linux kernel staging tree) and the XRT SHIM library. Together, these components allow the operating system to communicate with the NPU hardware. The driver is typically installed via DKMS to ensure it remains compatible across kernel updates, and the SHIM library provides the interface for XRT to interact with the XDNA device.

Who it’s for

Developers and users with RyzenAI processors who want to run AI inference applications on Linux (specifically Ubuntu, Arch Linux, and Fedora).

Highlights

  • Broad Distro Support: Provides build and installation paths for Ubuntu, Arch Linux, and Fedora.
  • XRT Integration: Includes a plugin for the Xilinx Runtime (XRT) to enable NPU functionality.
  • Firmware Management: Packages matching firmware binaries to prevent version mismatches between the driver and the hardware.
  • Inference Focus: Specifically designed to accelerate machine learning inference on AMD NPUs.

Related

  • Project
  • Project
  • Project
  • Project
  • Project