rknn_matmul_api_demo is a example which performs int8 matrix multiplication using the RKNPU matmul C API. Usage: ./rknn_matmul_api_demo The following represents RK3566_RK3568, RK3562 or RK3588 # Aarch64 Linux Demo ## Build modify `GCC_COMPILER` on `build-linux_.sh` for target platform, then execute ``` ./build-linux_.sh ``` ## Install Copy install/rknn_matmul_api_demo_Linux to the devices under /userdata/. - If you use rockchip's evb board, you can use the following way: Connect device and push the program to `/userdata` ``` adb push install/rknn_matmul_api_demo_Linux /userdata/ ``` - If your board has sshd service, you can use scp or other methods to copy the program to the board. ## Run ``` adb shell cd /userdata/rknn_matmul_api_demo_Linux/ ``` ``` export LD_LIBRARY_PATH=./lib ./rknn_matmul_api_demo ``` # Android Demo ## Build modify `ANDROID_NDK_PATH` on `build-android_.sh` for target platform, then execute ``` ./build-android_.sh ``` ## Install connect device and push build output into `/data` ``` adb push install/rknn_matmul_api_demo_Android /data/ ``` ## Run ``` adb shell cd /data/rknn_matmul_api_demo_Android/ ``` ``` export LD_LIBRARY_PATH=./lib ./rknn_matmul_api_demo ```