-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. support rk3399pro 2. rknn_converter can generate report after testing.
- Loading branch information
zen
committed
Dec 19, 2022
1 parent
1f53f85
commit a63ce65
Showing
134 changed files
with
14,066 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
RK1808_TOOL_CHAIN="/home/xz/Documents/git_rk/compile_tools/1808/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu" | ||
|
||
# for rk1808 aarch64 | ||
GCC_COMPILER=${RK1808_TOOL_CHAIN}/bin/aarch64-linux-gnu | ||
|
||
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) | ||
|
||
# model_zoo_path root path | ||
MZ_ROOT=$(pwd | sed 's/\(rknn_model_zoo\).*/\1/g') | ||
|
||
# build rockx | ||
BUILD_DIR=${ROOT_PWD}/build | ||
|
||
if [[ ! -d "${BUILD_DIR}" ]]; then | ||
mkdir -p ${BUILD_DIR} | ||
fi | ||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ | ||
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DTARGET_SOC=RK1808 \ | ||
-DCMAKE_SYSTEM_NAME=Linux \ | ||
-DZERO_COPY=1 | ||
make -j4 | ||
make install | ||
cd .. | ||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ | ||
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DTARGET_SOC=RK1808 \ | ||
-DCMAKE_SYSTEM_NAME=Linux \ | ||
-DZERO_COPY=0 | ||
make -j4 | ||
make install | ||
|
33 changes: 33 additions & 0 deletions
33
capi_tools/toolkit1/rknn_capi_test/build_rk3399pro_android.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# same as rk1808 | ||
ANDROID_NDK_PATH="/home/xz/Documents/git_rk/compile_tools/3568/android/android-ndk-r17" | ||
|
||
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) | ||
|
||
# model_zoo_path root path | ||
MZ_ROOT=$(pwd | sed 's/\(rknn_model_zoo\).*/\1/g') | ||
|
||
# build rockx | ||
BUILD_DIR=${ROOT_PWD}/build | ||
|
||
if [[ ! -d "${BUILD_DIR}" ]]; then | ||
mkdir -p ${BUILD_DIR} | ||
fi | ||
|
||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_PATH/build/cmake/android.toolchain.cmake \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DCMAKE_SYSTEM_NAME=Android \ | ||
-DANDROID_ABI="arm64-v8a" \ | ||
-DANDROID_PLATFORM=android-23 \ | ||
-DANDROID_STL=c++_static \ | ||
-DTARGET_SOC=RK3399PRO \ | ||
-DZERO_COPY=0 | ||
make -j4 | ||
make install | ||
|
33 changes: 33 additions & 0 deletions
33
capi_tools/toolkit1/rknn_capi_test/build_rk3399pro_linux.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# same as rk1808 | ||
RK3399PRO_TOOL_CHAIN=/home/xz/Documents/git_rk/compile_tools/1808/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu | ||
|
||
GCC_COMPILER=${RK3399PRO_TOOL_CHAIN}/bin/aarch64-linux-gnu | ||
|
||
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) | ||
|
||
# model_zoo_path root path | ||
MZ_ROOT=$(pwd | sed 's/\(rknn_model_zoo\).*/\1/g') | ||
|
||
# build rockx | ||
BUILD_DIR=${ROOT_PWD}/build | ||
|
||
if [[ ! -d "${BUILD_DIR}" ]]; then | ||
mkdir -p ${BUILD_DIR} | ||
fi | ||
|
||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ | ||
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DTARGET_SOC=RK3399PRO \ | ||
-DCMAKE_SYSTEM_NAME=Linux \ | ||
-DZERO_COPY=0 \ | ||
make -j4 | ||
make install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
RV1109_TOOL_CHAIN="/home/xz/Documents/git_rk/compile_tools/1109/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf" | ||
|
||
|
||
# for rv1109/rv1126 armhf | ||
GCC_COMPILER=${RV1109_TOOL_CHAIN}/bin/arm-linux-gnueabihf | ||
|
||
ROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd ) | ||
|
||
# model_zoo_path root path | ||
MZ_ROOT=$(pwd | sed 's/\(rknn_model_zoo\).*/\1/g') | ||
|
||
# build rockx | ||
BUILD_DIR=${ROOT_PWD}/build | ||
|
||
if [[ ! -d "${BUILD_DIR}" ]]; then | ||
mkdir -p ${BUILD_DIR} | ||
fi | ||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ | ||
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DTARGET_SOC=RV1109_1126 \ | ||
-DCMAKE_SYSTEM_NAME=Linux \ | ||
-DZERO_COPY=1 | ||
make -j4 | ||
make install | ||
cd .. | ||
|
||
cd ${BUILD_DIR} | ||
cmake .. \ | ||
-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \ | ||
-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++ \ | ||
-DMZ_ROOT=${MZ_ROOT} \ | ||
-DTARGET_SOC=RV1109_1126 \ | ||
-DCMAKE_SYSTEM_NAME=Linux \ | ||
-DZERO_COPY=0 | ||
make -j4 | ||
make install | ||
|
Binary file added
BIN
+9 KB
capi_tools/toolkit1/rknn_capi_test/install/RK1808/Linux/rknn_capi_test/lib/librknn_api.so
Binary file not shown.
Binary file added
BIN
+913 KB
capi_tools/toolkit1/rknn_capi_test/install/RK1808/Linux/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file added
BIN
+915 KB
...ools/toolkit1/rknn_capi_test/install/RK1808/Linux/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
Binary file added
BIN
+422 KB
...tools/toolkit1/rknn_capi_test/install/RK3399PRO/Android/rknn_capi_test/lib/librknn_api.so
Binary file not shown.
Binary file added
BIN
+5.56 MB
capi_tools/toolkit1/rknn_capi_test/install/RK3399PRO/Android/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file added
BIN
+9 KB
capi_tools/toolkit1/rknn_capi_test/install/RK3399PRO/Linux/rknn_capi_test/lib/librknn_api.so
Binary file not shown.
Binary file added
BIN
+913 KB
capi_tools/toolkit1/rknn_capi_test/install/RK3399PRO/Linux/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file added
BIN
+6.12 KB
...tools/toolkit1/rknn_capi_test/install/RV1109_1126/Linux/rknn_capi_test/lib/librknn_api.so
Binary file not shown.
Binary file added
BIN
+870 KB
capi_tools/toolkit1/rknn_capi_test/install/RV1109_1126/Linux/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file added
BIN
+874 KB
...toolkit1/rknn_capi_test/install/RV1109_1126/Linux/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+296 Bytes
(100%)
capi_tools/toolkit2/rknn_capi_test/install/rk356x/Android/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file modified
BIN
+1.42 KB
(100%)
...ls/toolkit2/rknn_capi_test/install/rk356x/Android/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
Binary file modified
BIN
+12 KB
(100%)
capi_tools/toolkit2/rknn_capi_test/install/rk356x/Linux/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ools/toolkit2/rknn_capi_test/install/rk356x/Linux/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
Binary file modified
BIN
+288 Bytes
(100%)
capi_tools/toolkit2/rknn_capi_test/install/rk3588/Android/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file modified
BIN
+1.42 KB
(100%)
...ls/toolkit2/rknn_capi_test/install/rk3588/Android/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
Binary file modified
BIN
+12 KB
(100%)
capi_tools/toolkit2/rknn_capi_test/install/rk3588/Linux/rknn_capi_test/rknn_capi_test
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ools/toolkit2/rknn_capi_test/install/rk3588/Linux/rknn_capi_test/rknn_capi_test_zero_copy
Binary file not shown.
Oops, something went wrong.