我要评分
获取效率
正确性
完整性
易理解

Kunpeng 920 Accelerator Hardware Abstraction

The WD accelerator user-mode library is used together with the accelerator kernel-mode framework (UACCE). The combination of them enables the accelerator hardware registered with the UACCE to access the memory in the address mode of the user-mode software, so that an FIFO-based communication channel can be established between the CPU and the accelerator.

The WD accelerator user-mode library can be used on the accelerator of the Kunpeng 920, and can support accelerator hardware of any other vendor by working with the UACCE.

This document uses the accelerator of the Kunpeng 920 as an example to introduce an implementation manner of accelerator hardware.

The WD accelerator user-mode library is not bound to a specific accelerator.

The accelerator on the Kunpeng 920 server chips interacts with software through the queue management module (QM). Software writes a task to a queue element. The QM obtains the address of the queue element and delivers it to the accelerator. The accelerator reads and processes the specific acceleration task based on the address. After processing the task, the accelerator applies for the write-back address from the QM to update the queue element and reports an interrupt based on hardware configuration.