amd/xdna-driver

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

What it solves

This project provides the necessary Linux kernel driver (amdxdna.ko) and XRT SHIM library to enable support for AMD XDNA devices (NPUs) on Linux. It allows users to run AI applications by bridging the hardware device with the Xilinx Runtime (XRT) environment.

How it works

The project consists of a kernel-level driver that manages the NPU hardware and a plugin package that includes the XRT SHIM library and firmware binaries. The driver is mirrored from the Linux kernel staging tree and is integrated into the system via DKMS (Dynamic Kernel Module Support) to ensure it compiles and loads correctly across different kernel versions.

Who it’s for

Developers and users with RyzenAI processors who want to run AI inference applications on their NPU under Ubuntu, Arch Linux, or Fedora.

Highlights

  • Multi-distro support: Provides build and installation recipes for Ubuntu, Arch Linux, and Fedora.
  • XRT Integration: Specifically designed to work with the Xilinx Runtime (XRT) to provide a standardized interface for NPU access.
  • Firmware Management: Bundles matching firmware binaries to prevent version mismatch errors between the driver and the hardware.
  • Inference Focus: Optimized specifically for accelerating ML inference rather than training.

Related

  • Project
  • Project
  • Project
  • Project
  • Project