AMD has opened the driver code for the NPU based on the XDNA architecture.

AMD has released the source code for drivers for cards powered by the XDNA architecture, which provides tools for accelerating computations related to machine learning and signal processing (NPU, Neural Processing Unit). The XDNA-based NPU is included in the AMD Ryzen 7040 and 8040 processor series, AMD Alveo V70 accelerators, and AMD Versal SoCs. The code is written in C and C++ and is open under the GPLv2 license. A Linux kernel 6.7 with IOMMU SVA (Shared Virtual Addressing) support is required for the driver to function.

The published code includes a driver for the Linux kernel (amdxdna.ko) and a runtime library (plugin "xrt_plugin*-amdxdna") for using the XRT (Xilinx Runtime Library) interface, which allows applications to interact with handlers (kernel) running on the hardware accelerator side. XRT enables the use of the AMD NPU in applications written in standard programming languages. Various levels of abstraction are provided, from low-level APIs for C/C++ to high-level bindings for Python and components for integration with TensorFlow, PyTorch, and Caffe.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster