Skip to content

RKNN Runtime

RKNN (Rockchip) Runtime in PySDK

PySDK supports version 2.0.0, 2.1.0+ of the RKNN runtime on Rockchip systems.

You can check for an existing installation of RKNN Runtime by running the following command:

strings /usr/lib/librknnrt.so | grep librknnrt

Example output:

librknnrt version: 2.0.0b0 (35a6907d79@2024-03-24T10:31:14)

To verify that the Rockchip NPU driver is properly loaded and functioning on your system, you can check the system logs for NPU-related entries. Run the following command:

dmesg | grep rknpu

To install the RKNN Runtime, clone the RKNN repository from this link. Then, simply copy the librknnrt.so file to the /usr/lib/ directory:

git clone https://github.com/airockchip/rknn-toolkit2.git
cd rknn-toolkit2
sudo cp ./rknpu2/runtime/Linux/librknn_api/aarch64/librknnrt.so /usr/lib/